about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-12-12 11:26:00 +0000
committernicoo <nicoo@mur.at>2023-12-12 23:04:32 +0000
commit22cb8a17128b471fca2d5aba67e8d1184abfed83 (patch)
tree7e7b05ccb774f7741ece4239d86074194e8f4f89 /nixos
parent735481ef6b8be1ef884a6c4b0a4b80264216a379 (diff)
downloadnixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar.gz
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar.bz2
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar.lz
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar.xz
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.tar.zst
nixlib-22cb8a17128b471fca2d5aba67e8d1184abfed83.zip
nixos/doc/manual: Add `/var/lib/nixos` under “Necessary system state”
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/administration/nixos-state.section.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/nixos/doc/manual/administration/nixos-state.section.md b/nixos/doc/manual/administration/nixos-state.section.md
index 403195faa59d..2443918c9d7c 100644
--- a/nixos/doc/manual/administration/nixos-state.section.md
+++ b/nixos/doc/manual/administration/nixos-state.section.md
@@ -6,8 +6,13 @@ can be linked from the nix store during activation.
 Moreover, `/boot` should also be persistent, as it contains the kernel, initrd,
 and the command-line determining the system environment's path in the nix store.
 
-Lastly, `users.mutableUsers` should be false, *or* the following files under
-`/etc` should all persist:
-- {manpage}`passwd(5)` and {manpage}`group(5)`,
-- {manpage}`shadow(5)` and {manpage}`gshadow(5)`,
-- {manpage}`subuid(5)` and {manpage}`subgid(5)`.
+
+## Users and groups {#sec-state-users}
+
+- `/var/lib/nixos` should persist: it holds state needed to generate stable
+  uids and gids for declaratively-managed users and groups, etc.
+- `users.mutableUsers` should be false, *or* the following files under `/etc`
+  should all persist:
+  - {manpage}`passwd(5)` and {manpage}`group(5)`,
+  - {manpage}`shadow(5)` and {manpage}`gshadow(5)`,
+  - {manpage}`subuid(5)` and {manpage}`subgid(5)`.