aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2017-11-04 21:17:09 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-04 18:02:59 -0500
commitd7a84d330cc677d3c9e2c5553a861ab9f82245f6 (patch)
treea4619c598283242708a90cd2903d03c35ddd2d35
parent7a4d9574d9275426e31bb2b3fbb8515600d233c4 (diff)
Setup nix_path correctly in nix-profile-daemon
We need nixpkgs to be set in NIX_PATH for Nix 1.12 to work correctly
-rw-r--r--scripts/nix-profile-daemon.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in
index 43c715606..4632099e3 100644
--- a/scripts/nix-profile-daemon.sh.in
+++ b/scripts/nix-profile-daemon.sh.in
@@ -50,5 +50,5 @@ if test -w $HOME; then
fi
export NIX_SSL_CERT_FILE="@localstatedir@/nix/profiles/default/etc/ssl/certs/ca-bundle.crt"
-export NIX_PATH="@localstatedir@/nix/profiles/per-user/root/channels"
+export NIX_PATH="nixpkgs=@localstatedir@/nix/profiles/per-user/root/channels/nixpkgs:@localstatedir@/nix/profiles/per-user/root/channels"
export PATH="$HOME/.nix-profile/bin:$HOME/.nix-profile/lib/kde4/libexec:@localstatedir@/nix/profiles/default/bin:@localstatedir@/nix/profiles/default:@localstatedir@/nix/profiles/default/lib/kde4/libexec:$PATH"