From 69819871dcced600959ab1c875702acbe6dccc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roche?= Date: Mon, 11 Mar 2024 16:40:15 +0100 Subject: [PATCH] Add option to use a custom nix install URL (#195) This change allow users to specify a custom nix install URL to use another nix version than the latest stable or to use another installer script. --- nixos-infect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos-infect b/nixos-infect index 8b4f33b..06f0171 100644 --- a/nixos-infect +++ b/nixos-infect @@ -325,8 +325,8 @@ infect() { # TODO use addgroup and adduser as fallbacks #addgroup nixbld -g 30000 || true #for i in {1..10}; do adduser -DH -G nixbld nixbld$i || true; done - - curl -L https://nixos.org/nix/install | sh -s -- --no-channel-add + NIX_INSTALL_URL="${NIX_INSTALL_URL:-https://nixos.org/nix/install}" + curl -L "${NIX_INSTALL_URL}" | sh -s -- --no-channel-add # shellcheck disable=SC1090 source ~/.nix-profile/etc/profile.d/nix.sh