diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 9b2e240..d4a3b9a 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -euo pipefail +if type -p nix &>/dev/null ; then + echo "Aborting: Nix is already installed at $(type -p nix)" + exit +fi + # Configure Nix add_config() { echo "$1" | sudo tee -a /tmp/nix.conf >/dev/null