The NixOS wiki is outdated and is being shut down. If you wish to add or improve NixOS documentation, please grab a ticket from the Move the wiki! milestone.
A binary cache is a kind of substitute that nix uses to download store paths from.
Channels come with a binary cache, the NixOS channels use https://cache.nixos.org.
Using Binary Caches
See the documentation of
binary-caches, trusted-binary-caches and
extra-binary-caches in https://nixos.org/nix/manual/#sec-conf-file.
In short, everyone may access all binary caches in binary-caches and trusted-binary-caches, but only privileged users may access any binary cache.
On The Command Line
--option binary-caches to add(/replace?!) a cache. As unprivileged user it must be in
In NixOS Config
Use the options
trustedBinaryCaches in the
nix attribute set.