HTTP Binary Cache Store - Nix 2.34.9 Reference Manual
Source: /pages/nix-manual/store/types/http-binary-cache-store
HTTP Binary Cache Store
Store URL format: http://..., https://...
This store allows a binary cache to be accessed via the HTTP protocol.
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: ``log-compressionCompression method forlog/*files. It is recommended to use a compression method supported by most web browsers (e.g.brotli). Default: ``ls-compressionCompression method for.lsfiles. Default: ``narinfo-compressionCompression method for.narinfofiles. 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-specifictls-certificatePath to an optional TLS client certificate in PEM format. Default: ``tls-private-keyPath to an optional TLS client certificate private key in PEM format. Default: ``trustedWhether 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/http-binary-cache-store.html