From 0a2f736476000a03d73462d7d63fa00920cb0a83 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 31 May 2018 12:28:38 -0700 Subject: [PATCH] Set up nix on non NixOS systems --- dotfiles/lib/shellpath.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/lib/shellpath.sh b/dotfiles/lib/shellpath.sh index 4243636e..0fad8800 100644 --- a/dotfiles/lib/shellpath.sh +++ b/dotfiles/lib/shellpath.sh @@ -8,6 +8,7 @@ function _setup_path { _ruby_setup is_osx && _osx_path_setup || _linux_path_setup + _nix_setup _emacs_setup _haskell_setup _java_setup @@ -136,3 +137,9 @@ function _haskell_setup { # precedence. add_to_path "$HOME/.cabal/bin" --after --target "$HOME/.local/bin" } + +function _nix_setup { + if [ -e /home/imalison/.nix-profile/etc/profile.d/nix.sh ]; then + . /home/imalison/.nix-profile/etc/profile.d/nix.sh; + fi +}