mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-24 20:23:09 +00: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
|
# TODO use addgroup and adduser as fallbacks
|
||||||
#addgroup nixbld -g 30000 || true
|
#addgroup nixbld -g 30000 || true
|
||||||
#for i in {1..10}; do adduser -DH -G nixbld nixbld$i || true; done
|
#for i in {1..10}; do adduser -DH -G nixbld nixbld$i || true; done
|
||||||
|
NIX_INSTALL_URL="${NIX_INSTALL_URL:-https://nixos.org/nix/install}"
|
||||||
curl -L https://nixos.org/nix/install | sh -s -- --no-channel-add
|
curl -L "${NIX_INSTALL_URL}" | sh -s -- --no-channel-add
|
||||||
|
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source ~/.nix-profile/etc/profile.d/nix.sh
|
source ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
|
Loading…
Reference in a new issue