From 089010b33c7f0870f83ff441b6075385368bce45 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 22 Jan 2025 15:56:36 +0100 Subject: [PATCH] refactor: update Nix installation process to download and execute installer script --- setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 397680f..f245fff 100755 --- a/setup.sh +++ b/setup.sh @@ -136,7 +136,10 @@ install_nix() { fi log_info "Nix not detected, installing Nix..." - curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh install || die "Failed to install Nix" + curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix -o install-nix.sh || \ + die "Failed to download Nix installer" + + sh install-nix.sh install || die "Failed to install Nix" log_success "Nix has been installed. Please open a new shell and re-run the script." log_info "'~/dotfiles/setup.sh --continue' to continue setup."