nixos/doc/manual: Rework nixos-state.section.md
This commit is contained in:
parent
22cb8a1712
commit
6012fe8f2d
1 changed files with 14 additions and 4 deletions
|
@ -1,10 +1,20 @@
|
||||||
# NixOS {#sec-nixos-state}
|
# NixOS {#sec-nixos-state}
|
||||||
|
|
||||||
NixOS itself obviously needs `/nix` to be persistent, so the system environment
|
## `/nix` {#sec-state-nix}
|
||||||
can be linked from the nix store during activation.
|
|
||||||
|
|
||||||
Moreover, `/boot` should also be persistent, as it contains the kernel, initrd,
|
NixOS needs the entirety of `/nix` to be persistent, as it includes:
|
||||||
and the command-line determining the system environment's path in the nix store.
|
- `/nix/store`, which contains all the system's executables, libraries, and supporting data;
|
||||||
|
- `/nix/var/nix`, which contains:
|
||||||
|
- the Nix daemon's database;
|
||||||
|
- roots whose transitive closure is preserved when garbage-collecting the Nix store;
|
||||||
|
- system-wide and per-user profiles.
|
||||||
|
|
||||||
|
## `/boot` {#sec-state-boot}
|
||||||
|
|
||||||
|
`/boot` should also be persistent, as it contains:
|
||||||
|
- the kernel and initrd which the bootloader loads,
|
||||||
|
- the bootloader's configuration, including the kernel's command-line which
|
||||||
|
determines the store path to use as system environment.
|
||||||
|
|
||||||
|
|
||||||
## Users and groups {#sec-state-users}
|
## Users and groups {#sec-state-users}
|
||||||
|
|
Loading…
Reference in a new issue