Nix supports different types of stores:
@store-types@
Stores are specified using a URL-like syntax. For example, the command
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 store settings using URL query strings, i.e. by appending ?name1=value1&name2=value2&...
to the URL. For instance,
tells Nix to access the store on a remote machine via the SSH protocol, using /path/to/my/key
as the SSH private key. The supported settings for each store type are documented below.
The special store URL auto
causes Nix to automatically select a store as follows:
/nix/store
if /nix/var/nix
is writable by the current user./nix/var/nix/daemon-socket/socket
exists, connect to the Nix daemon listening on that socket".
* Otherwise, on Linux only, use the @ref "./local-store.md" "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.md" "local store" /nix/store
.