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. # 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

View file

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