Skip to content

The generator

The generator (src/generator/, written in Rust) turns the declarative usr/config.yaml configuration into the Nix code consumed by the framework.

  • Input: usr/config.yaml — hosts, users, network, services.
  • Output: var/generated/hosts.nix, users.nix, network.nix.

These files are generated: never edit them by hand. To regenerate them after a configuration change:

Fenêtre de terminal
just generate