mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nix-daemon: fix eval
This commit is contained in:
parent
8960f57708
commit
2156c30ad2
2 changed files with 8 additions and 8 deletions
|
@ -357,5 +357,13 @@ in
|
|||
fi
|
||||
'';
|
||||
|
||||
system.activationScripts.nix-daemon.text = mkIf daemon.enable ''
|
||||
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
|
||||
exit 2
|
||||
fi
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -51,13 +51,5 @@ in
|
|||
// { TMPDIR = "${cfg.tempDir}"; };
|
||||
};
|
||||
|
||||
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
|
||||
exit 2
|
||||
fi
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue