mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Unhardcode path to single-user nix
This commit is contained in:
parent
5619d5dccf
commit
b2bab0abfd
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
if [[ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]]; then
|
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'
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
||||||
elif [[ -e '/Users/lloeki/.nix-profile/etc/profile.d/nix.sh' ]]; then
|
elif [[ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]]; then
|
||||||
. '/Users/lloeki/.nix-profile/etc/profile.d/nix.sh'
|
. "${HOME}/.nix-profile/etc/profile.d/nix.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue