From 195371b9bff9c5875569d98e3b4acadaadf28aaa Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Wed, 22 Jan 2025 15:54:29 +0100 Subject: [PATCH] refactor: update Nix installation script to use a more reliable source --- setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 90cbaab..6e46ef0 100755 --- a/setup.sh +++ b/setup.sh @@ -136,9 +136,7 @@ install_nix() { fi log_info "Nix not detected, installing Nix..." - if ! sh <(curl -L https://nixos.org/nix/install) --daemon; then - die "Failed to install Nix" - fi + curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh || 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."