Local Binary Cache Store
Store URL format: file://path
This store allows reading and writing a binary cache stored in path in the local filesystem. If path does not exist, it will be created.
For example, the following builds or downloads nixpkgs#hello into
the local store and then copies it to the binary cache in
/tmp/binary-cache:
# nix copy --to file:///tmp/binary-cache nixpkgs#hello
Settings
-
NAR compression method. One of:
xz,bzip2,gzip,zstd,none,br,compress,grzip,lrzip,lz4,lzip,lzmaorlzop. To use a particular compression method Nix has to be built with a version of libarchive that natively supports that compression algorithm.Default:
xz -
The preset level to be used when compressing NARs. The meaning and accepted values depend on the compression method selected.
-1specifies that the default compression level should be used.Default:
-1 -
Whether to index DWARF debug info files by build ID. This allows
dwarffsto fetch debug info on demandDefault:
false -
Path to a local cache of NARs fetched from this binary cache, used by commands such as
nix store cat.Default: ``
-
Enable multi-threaded compression of NARs. This is currently only available for
xzandzstd.Default:
false -
Size of the in-memory store path metadata cache.
Default:
65536 -
Priority of this store when used as a substituter. A lower value means a higher priority.
Default:
0 -
Path to the secret key used to sign the binary cache.
Default: empty
-
List of comma-separated paths to the secret keys used to sign the binary cache.
Default: empty
-
Logical location of the Nix store, usually
/nix/store. Note that you can only copy store paths between stores if they have the samestoresetting.Default:
/nix/store -
Optional system features available on the system this store uses to build derivations.
Example:
"kvm"Default: machine-specific
-
Whether paths from this store can be used as substitutes even if they are not signed by a key listed in the
trusted-public-keyssetting.Default:
false -
Whether to use the Bloom filter advertised by this binary cache (if any) to avoid querying
.narinfofiles for store paths that are definitely not in the cache. Set tofalseto disable this optimization.Default:
true -
Whether this store can be queried efficiently for path validity when used as a substituter.
Default:
false -
Whether to write a JSON file that lists the files in each NAR.
Default:
false