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*
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
the "root" of the filesystem; other directories such as the Nix store
directory (as denoted by the `store` setting) are interpreted relative
to *root*. The store pseudo-URL `local` denotes a store that uses `/`
as its root directory.
(i.e. not via the Nix daemon). *root* is an absolute path that is
prefixed to other directories such as the Nix store directory. The
store pseudo-URL `local` denotes a store that uses `/` as its root
directory.
A store that uses a *root* other than `/` is called a *chroot
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
store as follows:
* Use the local store `/nix/store` if `/nix/var/nix` is writable by
the current user.
* Use the [local store](#local-store) `/nix/store` if `/nix/var/nix`
is writable by the current user.
* Otherwise, if `/nix/var/nix/daemon-socket/socket` exists, [connect
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
does not exist.
* Otherwise, use the local store `/nix/store`.
* Otherwise, use the [local store](#local-store) `/nix/store`.
@stores@