Use https://cache.nixos.org

Changed files
+12 -6
nixos
doc
manual
administration
modules
installer
services
tests
+4 -4
nixos/doc/manual/administration/network-problems.xml
···
<command>nixos-rebuild</command> needs a path in the Nix store, Nix
will try to download that path from the Internet rather than build it
from source. The default binary cache is
-
<uri>http://cache.nixos.org/</uri>. If this cache is unreachable, Nix
-
operations may take a long time due to HTTP connection timeouts. You
-
can disable the use of the binary cache by adding <option>--option
+
<uri>https://cache.nixos.org/</uri>. If this cache is unreachable,
+
Nix operations may take a long time due to HTTP connection timeouts.
+
You can disable the use of the binary cache by adding <option>--option
use-binary-caches false</option>, e.g.
<screen>
···
</para>
-
</section>
+
</section>
+1 -1
nixos/modules/installer/tools/nixos-rebuild.sh
···
exit 1
fi
if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
-
--option extra-binary-caches http://cache.nixos.org/; then
+
--option extra-binary-caches https://cache.nixos.org/; then
echo "warning: don't know how to get latest Nix" >&2
fi
# Older version of nix-store -r don't support --add-root.
+1 -1
nixos/modules/services/misc/nix-daemon.nix
···
binaryCaches = mkOption {
type = types.listOf types.str;
-
default = [ http://cache.nixos.org/ ];
+
default = [ https://cache.nixos.org/ ];
description = ''
List of binary cache URLs used to obtain pre-built binaries
of Nix packages.
+6
nixos/tests/installer.nix
···
pkgs.unionfs-fuse
pkgs.gummiboot
];
+
+
# Don't use https://cache.nixos.org since the fake
+
# cache.nixos.org doesn't do https.
+
nix.binaryCaches = [ http://cache.nixos.org/ ];
}
];
}).config.system.build.isoImage;
···
${optionalString (!readOnly) "nix.readOnlyStore = false;"}
environment.systemPackages = [ ${optionalString testChannel "pkgs.rlwrap"} ];
+
+
nix.binaryCaches = [ http://cache.nixos.org/ ];
}
'';