nix-daemon: fix condition
This commit is contained in:
parent
b883ae533f
commit
8960f57708
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ in
|
|||
// { TMPDIR = "${cfg.tempDir}"; };
|
||||
};
|
||||
|
||||
system.activationScripts.nix-daemon.text = mkIf daemon.enable ''
|
||||
system.activationScripts.nix-daemon.text = ''
|
||||
buildUser=$(dscl . -read /Groups/nixbld 2>&1 | awk '/^GroupMembership: / {print $2}') || true
|
||||
if [ -z $buildUser ]; then
|
||||
echo "Using the nix-daemon requires build users, aborting activation" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue