nix-profile.sh: Don't set NIX_REMOTE on single user installations
Commit 6a214f3e06
reused the NixOS
environment initialisation for nix-profile.sh, but this is
inappropriate on systems that don't have multi-user support enabled.
This commit is contained in:
parent
477b0fbeca
commit
2605f4f4e6
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ fi
|
|||
|
||||
# Set up secure multi-user builds: non-root users build through the
|
||||
# Nix daemon.
|
||||
if test "$USER" != root; then
|
||||
if [ "$USER" != root -a -e @localstatedir@/nix/daemon-socket/socket ]; then
|
||||
export NIX_REMOTE=daemon
|
||||
else
|
||||
unset NIX_REMOTE
|
||||
|
|
Loading…
Reference in a new issue