Skip to content

Commit

Permalink
Don’t set NIX_REMOTE=daemon in daemon profile
Browse files Browse the repository at this point in the history
This is now autodetected. There is no need to put it in the profile.
  • Loading branch information
matthewbauer committed May 16, 2019
1 parent 7c20ee4 commit 92f461e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/nix-profile-daemon.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 92f461e

Please sign in to comment.