docs(nix): use NixOS module terminology
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user