Conditionally source nix-profile if needed on non-nixos machines

This commit is contained in:
Andrew R. M 2025-04-04 17:43:06 +00:00
parent ee73f0ae57
commit 8505ed15b8

View File

@ -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"