From b2bab0abfd35ba60a864859ff0b40c3012393f07 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 1 Dec 2021 00:37:29 +0100 Subject: [PATCH] Unhardcode path to single-user nix --- shell/nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/nix b/shell/nix index 62ec6ab..1822cfe 100755 --- a/shell/nix +++ b/shell/nix @@ -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