Merge pull request #244949 from FlafyDev/fix/nix-daemon-if
nixos/nix-daemon: change regular if to mkIf
This commit is contained in:
commit
383dc75dd7
@ -168,14 +168,16 @@ in
|
||||
|
||||
systemd.packages = [ nixPackage ];
|
||||
|
||||
systemd.tmpfiles =
|
||||
if (isNixAtLeast "2.8") then {
|
||||
systemd.tmpfiles = mkMerge [
|
||||
(mkIf (isNixAtLeast "2.8") {
|
||||
packages = [ nixPackage ];
|
||||
} else {
|
||||
})
|
||||
(mkIf (!isNixAtLeast "2.8") {
|
||||
rules = [
|
||||
"d /nix/var/nix/daemon-socket 0755 root root - -"
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
systemd.sockets.nix-daemon.wantedBy = [ "sockets.target" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user