Local Binary Cache Store - Nix 2.34.9 Reference Manual
Source: /pages/nix-manual/store/types/local-binary-cache-store
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
compressionNAR 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:xzcompression-levelThe 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:-1index-debug-infoWhether to index DWARF debug info files by build ID. This allowsdwarffsto fetch debug info on demand Default:falselocal-nar-cachePath to a local cache of NARs fetched from this binary cache, used by commands such asnix store cat. Default: ``parallel-compressionEnable multi-threaded compression of NARs. This is currently only available forxzandzstd. Default:falsepath-info-cache-sizeSize of the in-memory store path metadata cache. Default:65536priorityPriority of this store when used as a substituter. A lower value means a higher priority. Default:0secret-keyPath to the secret key used to sign the binary cache. Default: emptysecret-keysList of comma-separated paths to the secret keys used to sign the binary cache. Default: emptystoreLogical 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/storesystem-featuresOptional system features available on the system this store uses to build derivations. Example:"kvm"Default: machine-specifictrustedWhether paths from this store can be used as substitutes even if they are not signed by a key listed in thetrusted-public-keyssetting. Default:falsewant-mass-queryWhether this store can be queried efficiently for path validity when used as a substituter. Default:falsewrite-nar-listingWhether to write a JSON file that lists the files in each NAR. Default:false
nix.dev/manual/nix/stable/store/types/local-binary-cache-store.html