Always use https to fetch the Nixpkgs channel

This commit is contained in:
Eelco Dolstra 2014-12-10 11:35:56 +01:00
parent 39fe52f7ac
commit 2f16946064
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -12,7 +12,7 @@ if [ -n "$HOME" ]; then
# Subscribe the user to the Nixpkgs channel by default.
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
# Append ~/.nix-defexpr/channels/nixpkgs to $NIX_PATH so that