mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-22 08:08:29 +03:00
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.
This commit is contained in:
parent
45e2361a9e
commit
69819871dc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue