docs(nix): use NixOS module terminology

This commit is contained in:
2026-08-28 10:37:59 -04:00
parent 1654aef9ae
commit eef8e37fbb
2 changed files with 7 additions and 8 deletions

View File

@@ -64,8 +64,7 @@ Do not add root-level Nix files other than `flake.nix`.
A module is self-contained configuration under `modules/`.
It usually scopes to one program, service, or subsystem.
A Nix module is any Nix language unit that declares or sets module-system options.
Files under `hosts/`, `guests/`, and `modules/` return Nix modules.
Files under `hosts/`, `guests/`, and `modules/` return NixOS modules.
## Function Arguments
@@ -121,9 +120,9 @@ import ./flake { inherit lib inputs self; }
### Keep NixOS module interfaces open
Files under `hosts/`, `guests/`, and `modules/` return NixOS modules.
The NixOS module system owns their argument shape.
`nixosSystem` owns their argument shape.
Name each argument the module uses.
Keep `...` so the module accepts standard module arguments and special arguments.
Keep `...` so the module accepts standard arguments and special arguments.
Avoid: