Set up nix on non NixOS systems

This commit is contained in:
Ivan Malison 2018-05-31 12:28:38 -07:00
parent bb9f3227a0
commit 0a2f736476
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -8,6 +8,7 @@ function _setup_path {
_ruby_setup _ruby_setup
is_osx && _osx_path_setup || _linux_path_setup is_osx && _osx_path_setup || _linux_path_setup
_nix_setup
_emacs_setup _emacs_setup
_haskell_setup _haskell_setup
_java_setup _java_setup
@ -136,3 +137,9 @@ function _haskell_setup {
# precedence. # precedence.
add_to_path "$HOME/.cabal/bin" --after --target "$HOME/.local/bin" 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
}