Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
19 lines
799 B
Markdown
19 lines
799 B
Markdown
# Configuration Syntax {#sec-configuration-syntax}
|
|
|
|
The NixOS configuration file `/etc/nixos/configuration.nix` is actually
|
|
a *Nix expression*, which is the Nix package manager's purely functional
|
|
language for describing how to build packages and configurations. This
|
|
means you have all the expressive power of that language at your
|
|
disposal, including the ability to abstract over common patterns, which
|
|
is very useful when managing complex systems. The syntax and semantics
|
|
of the Nix language are fully described in the [Nix
|
|
manual](https://nixos.org/nix/manual/#chap-writing-nix-expressions), but
|
|
here we give a short overview of the most important constructs useful in
|
|
NixOS configuration files.
|
|
|
|
```{=include=} sections
|
|
config-file.section.md
|
|
abstractions.section.md
|
|
modularity.section.md
|
|
```
|