mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 16:27:03 +00:00
nix-daemon: fix nixbld group warning
This commit is contained in:
parent
6a52afb886
commit
b883ae533f
2 changed files with 8 additions and 9 deletions
|
@ -357,14 +357,5 @@ in
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.activationScripts.nix-daemon.text = mkIf daemon.enable ''
|
|
||||||
buildUser=$(dscl . -read /Groups/nixbld 2>&1 | awk '/^GroupMembership: / {print $2}')
|
|
||||||
if [ -z $buildUser ]; then
|
|
||||||
echo "Using the nix-daemon requires build users, aborting activation" >&2
|
|
||||||
export NIX_REMOTE=
|
|
||||||
exit 2
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,5 +51,13 @@ in
|
||||||
// { TMPDIR = "${cfg.tempDir}"; };
|
// { TMPDIR = "${cfg.tempDir}"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue