about summary refs log tree commit diff
path: root/nixos/doc/manual/administration/nixos-state.section.md
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-12-10 15:57:18 +0000
committernicoo <nicoo@mur.at>2023-12-12 23:04:32 +0000
commit735481ef6b8be1ef884a6c4b0a4b80264216a379 (patch)
tree8b89546638e02e7bebcb24a31e2eb34bf8ac450a /nixos/doc/manual/administration/nixos-state.section.md
parent82cdeab2aa574c255c8d8c96d796453e02c8af60 (diff)
nixos/doc: Add chapter “necessary system state”
Suggested in the discussion of #268995.
Diffstat (limited to 'nixos/doc/manual/administration/nixos-state.section.md')
-rw-r--r--nixos/doc/manual/administration/nixos-state.section.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/doc/manual/administration/nixos-state.section.md b/nixos/doc/manual/administration/nixos-state.section.md
new file mode 100644
index 0000000000000..403195faa59d0
--- /dev/null
+++ b/nixos/doc/manual/administration/nixos-state.section.md
@@ -0,0 +1,13 @@
+# NixOS {#sec-nixos-state}
+
+NixOS itself obviously needs `/nix` to be persistent, so the system environment
+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)`.