Source nix daemon if not already
This commit is contained in:
parent
02a36af41b
commit
df95c47851
1 changed files with 2 additions and 3 deletions
5
zshrc
5
zshrc
|
@ -103,9 +103,8 @@ if [ -f $HOME/.keysrc ]; then
|
|||
fi
|
||||
|
||||
# Allow nix if possible
|
||||
if [ -d /nix ]; then
|
||||
# https://github.com/NixOS/nix/issues/2033
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
|
||||
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
||||
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
||||
fi
|
||||
|
||||
# Rust
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue