Unhardcode path to single-user nix

This commit is contained in:
Loic Nageleisen 2021-12-01 00:37:29 +01:00
parent 5619d5dccf
commit b2bab0abfd
Signed by: lloeki
GPG key ID: 971B4D9F125CD31E

View file

@ -1,7 +1,7 @@
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'
elif [[ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]]; then
. "${HOME}/.nix-profile/etc/profile.d/nix.sh"
fi
# vim: ft=bash