diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-05-20 13:54:48 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-05-20 13:54:48 +0200 |
| commit | e88b408ee73d54569de5eb4b186b35d5888a44c9 (patch) | |
| tree | 35a1bf37fa29eec3138bdc653ca9c6b51d59cfa4 /modules/nix/default.nix | |
| parent | e95b40bf4ccb72eb19026cc30486af858191a499 (diff) | |
nix-daemon: unset NIX_REMOTE if there are no build users.
Diffstat (limited to 'modules/nix/default.nix')
| -rw-r--r-- | modules/nix/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 3c749f4..b91d3c6 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -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 ''; |
