From 1f5a913bf799bacb7b4d79d8ec8cff150aed090e Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 29 Mar 2021 14:26:43 +0200 Subject: [PATCH] Favor nix daemon mode --- shell/nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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