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.

Binary Cache

From Nix Wiki
Jump to: navigation, search

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

Using Binary Caches

In nix.conf

See the documentation of binary-caches, trusted-binary-caches and extra-binary-caches in

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

Use --option binary-caches to add(/replace?!) a cache. As unprivileged user it must be in binary-caches or trusted-binary-caches.

In NixOS Config

Use the options binaryCaches and trustedBinaryCaches in the nix attribute set.