1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

nix-daemon: fix condition

This commit is contained in:
Daiderd Jordan 2017-07-18 20:27:54 +02:00
parent b883ae533f
commit 8960f57708
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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