mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
install-nix-from-closure.sh: Use https channel if possible
This commit is contained in:
parent
98873ff7de
commit
4a198dae74
1 changed files with 5 additions and 1 deletions
|
@ -73,8 +73,12 @@ fi
|
||||||
|
|
||||||
# Subscribe the user to the Nixpkgs channel and fetch it.
|
# Subscribe the user to the Nixpkgs channel and fetch it.
|
||||||
if ! $nix/bin/nix-channel --list | grep -q "^nixpkgs "; then
|
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
|
$nix/bin/nix-channel --add http://nixos.org/channels/nixpkgs-unstable
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
$nix/bin/nix-channel --update nixpkgs
|
$nix/bin/nix-channel --update nixpkgs
|
||||||
|
|
||||||
# Install an SSL certificate bundle.
|
# Install an SSL certificate bundle.
|
||||||
|
|
Loading…
Reference in a new issue