This commit is contained in:
Eelco Dolstra 2023-03-23 15:32:59 +01:00
parent 7a61a9aba3
commit 168b6021c5
2 changed files with 8 additions and 9 deletions

View file

@ -3,11 +3,10 @@ R"(
**Store URL format**: `local`, *root* **Store URL format**: `local`, *root*
This store type accesses a Nix store in the local filesystem directly This store type accesses a Nix store in the local filesystem directly
(i.e. not via the Nix daemon). *root* is an absolute path that denotes (i.e. not via the Nix daemon). *root* is an absolute path that is
the "root" of the filesystem; other directories such as the Nix store prefixed to other directories such as the Nix store directory. The
directory (as denoted by the `store` setting) are interpreted relative store pseudo-URL `local` denotes a store that uses `/` as its root
to *root*. The store pseudo-URL `local` denotes a store that uses `/` directory.
as its root directory.
A store that uses a *root* other than `/` is called a *chroot A store that uses a *root* other than `/` is called a *chroot
store*. With such stores, the store directory is "logically" still store*. With such stores, the store directory is "logically" still

View file

@ -29,17 +29,17 @@ supported settings for each store type are documented below.
The special store URL `auto` causes Nix to automatically select a The special store URL `auto` causes Nix to automatically select a
store as follows: store as follows:
* Use the local store `/nix/store` if `/nix/var/nix` is writable by * Use the [local store](#local-store) `/nix/store` if `/nix/var/nix`
the current user. is writable by the current user.
* Otherwise, if `/nix/var/nix/daemon-socket/socket` exists, [connect * Otherwise, if `/nix/var/nix/daemon-socket/socket` exists, [connect
to the Nix daemon listening on that socket](#local-daemon-store). to the Nix daemon listening on that socket](#local-daemon-store).
* Otherwise, on Linux only, use the local chroot store * Otherwise, on Linux only, use the [local chroot store](#local-store)
`~/.local/share/nix/root`, which will be created automatically if it `~/.local/share/nix/root`, which will be created automatically if it
does not exist. does not exist.
* Otherwise, use the local store `/nix/store`. * Otherwise, use the [local store](#local-store) `/nix/store`.
@stores@ @stores@