1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

nix-daemon: unset NIX_REMOTE if there are no build users.

This commit is contained in:
Daiderd Jordan 2017-05-20 13:54:48 +02:00
parent e95b40bf4c
commit e88b408ee7
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -361,6 +361,7 @@ in
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
'';