Don’t set NIX_REMOTE=daemon in daemon profile

This is now autodetected. There is no need to put it in the profile.
This commit is contained in:
Matthew Bauer 2019-05-15 22:24:24 -04:00
parent 7c20ee448f
commit 92f461e4f4
1 changed files with 0 additions and 6 deletions

View File

@ -2,12 +2,6 @@
if [ -n "${__ETC_PROFILE_NIX_SOURCED:-}" ]; then return; fi
__ETC_PROFILE_NIX_SOURCED=1
# Set up secure multi-user builds: non-root users build through the
# Nix daemon.
if [ "$USER" != root -o ! -w @localstatedir@/nix/db ]; then
export NIX_REMOTE=daemon
fi
export NIX_USER_PROFILE_DIR="@localstatedir@/nix/profiles/per-user/$USER"
export NIX_PROFILES="@localstatedir@/nix/profiles/default $HOME/.nix-profile"