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:
parent
e95b40bf4c
commit
e88b408ee7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue