From b79b8340fb15d24f42c7d95a4fd5040352c1eb3c Mon Sep 17 00:00:00 2001 From: Claas Date: Wed, 18 Sep 2024 12:23:28 +0200 Subject: [PATCH] Reset shell to have nix available --- bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 6058d2e..9bcf372 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -7,6 +7,9 @@ cp ./nix.conf ~/.config/nix/ echo "Running nix install script" curl -L https://nixos.org/nix/install | bash +echo "Resetting shell" +source /etc/profile + echo "Installing nix-darwin" SCRIPT_DIRECTORY=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) nix run nix-darwin -- switch --flake $SCRIPT_DIRECTORY -- 2.51.2