about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-05-16T02·24-0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-05-16T02·24-0400
commit92f461e4f46b595e3712b41c30b8403905dd8673 (patch)
treed9975f6a9d6f030eca9ad6a2dff3b28e4dad128b /scripts
parent7c20ee448fa924d898bcebf84bd0a7caf368a656 (diff)
Don’t set NIX_REMOTE=daemon in daemon profile
This is now autodetected. There is no need to put it in the profile.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/nix-profile-daemon.sh.in6
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in
index 6940969cca7b..23da5e8559eb 100644
--- a/scripts/nix-profile-daemon.sh.in
+++ b/scripts/nix-profile-daemon.sh.in
@@ -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"