forked from lix-project/lix
install-nix-from-closure.sh: Use https channel if possible
This commit is contained in:
parent
98873ff7de
commit
4a198dae74
|
@ -73,7 +73,11 @@ fi
|
|||
|
||||
# Subscribe the user to the Nixpkgs channel and fetch it.
|
||||
if ! $nix/bin/nix-channel --list | grep -q "^nixpkgs "; then
|
||||
$nix/bin/nix-channel --add http://nixos.org/channels/nixpkgs-unstable
|
||||
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
|
||||
fi
|
||||
$nix/bin/nix-channel --update nixpkgs
|
||||
|
||||
|
|
Loading…
Reference in a new issue