|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
R"( Lix supports different types of stores. These are described below. @subsection autotoc_md69 Store URL format Stores are specified using a URL-like syntax. For example, the command @icode{console} # nix path-info --store https://cache.nixos.org/ --json \ /nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1 @endicode fetches information about a store path in the HTTP binary cache located at https://cache.nixos.org/, which is a type of store. Store URLs can specify <strong>store settings</strong> using URL query strings, i.e. by appending <tt>?name1=value1\&name2=value2\&...</tt> to the URL. For instance, @icode --store ssh://machine.example.org?ssh-key=/path/to/my/key @endicode tells Lix to access the store on a remote machine via the SSH protocol, using <tt>/path/to/my/key</tt> as the SSH private key. The supported settings for each store type are documented below. The special store URL <tt>auto</tt> causes Lix to automatically select a store as follows: * Use the @ref "local-store" "local store" <tt>/nix/store</tt> if <tt>/nix/var/nix</tt> is writable by the current user. * Otherwise, if <tt>/nix/var/nix/daemon-socket/socket</tt> exists, @ref "local-daemon-store" "connect to the Nix daemon listening on that socket". * Otherwise, on Linux only, use the @ref "local-store" "local chroot store" <tt>~/.local/share/nix/root</tt>, which will be created automatically if it does not exist. * Otherwise, use the @ref "local-store" "local store" <tt>/nix/store</tt>. @stores@ )"