Source nix daemon if not already

This commit is contained in:
Spotlight 2023-05-04 15:18:45 -05:00
parent 02a36af41b
commit df95c47851
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

5
zshrc
View file

@ -103,9 +103,8 @@ if [ -f $HOME/.keysrc ]; then
fi fi
# Allow nix if possible # Allow nix if possible
if [ -d /nix ]; then if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
# https://github.com/NixOS/nix/issues/2033 . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
fi fi
# Rust # Rust