diff --git a/shell/nix b/shell/nix index d5f8142..62ec6ab 100755 --- a/shell/nix +++ b/shell/nix @@ -1,9 +1,7 @@ -if [[ -e /Users/lloeki/.nix-profile/etc/profile.d/nix.sh ]]; then - . /Users/lloeki/.nix-profile/etc/profile.d/nix.sh +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' +elif [[ -e '/Users/lloeki/.nix-profile/etc/profile.d/nix.sh' ]]; then + . '/Users/lloeki/.nix-profile/etc/profile.d/nix.sh' fi -#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 - # vim: ft=bash