Conditionally source nix-profile if needed on non-nixos machines
This commit is contained in:
parent
30ff982bff
commit
edf8584f2a
@ -4,6 +4,15 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
if ! which nix &>/dev/null; then
|
||||||
|
if [ -r "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
|
||||||
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
else
|
||||||
|
echo "Nix isn't available. Exiting now!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
nix_packages=(
|
nix_packages=(
|
||||||
# Personal tools
|
# Personal tools
|
||||||
"vimHugeX"
|
"vimHugeX"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user