Always use https to fetch the Nixpkgs channel
This commit is contained in:
parent
39fe52f7ac
commit
2f16946064
|
@ -73,11 +73,7 @@ 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
|
||||||
$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
|
fi
|
||||||
if [ -z "$_NIX_INSTALLER_TEST" ]; then
|
if [ -z "$_NIX_INSTALLER_TEST" ]; then
|
||||||
$nix/bin/nix-channel --update nixpkgs
|
$nix/bin/nix-channel --update nixpkgs
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [ -n "$HOME" ]; then
|
||||||
|
|
||||||
# Subscribe the user to the Nixpkgs channel by default.
|
# Subscribe the user to the Nixpkgs channel by default.
|
||||||
if [ ! -e $HOME/.nix-channels ]; then
|
if [ ! -e $HOME/.nix-channels ]; then
|
||||||
echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels
|
echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that
|
# Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that
|
||||||
|
|
Loading…
Reference in a new issue