Always use https to fetch the Nixpkgs channel
This commit is contained in:
parent
39fe52f7ac
commit
2f16946064
2 changed files with 2 additions and 6 deletions
|
@ -73,11 +73,7 @@ fi
|
|||
|
||||
# Subscribe the user to the Nixpkgs channel and fetch it.
|
||||
if ! $nix/bin/nix-channel --list | grep -q "^nixpkgs "; then
|
||||
if [ -n "$SSL_CERT_FILE" ]; then
|
||||
$nix/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
||||
else
|
||||
$nix/bin/nix-channel --add http://nixos.org/channels/nixpkgs-unstable
|
||||
fi
|
||||
$nix/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
||||
fi
|
||||
if [ -z "$_NIX_INSTALLER_TEST" ]; then
|
||||
$nix/bin/nix-channel --update nixpkgs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue