NixOS patterns
These pages start from patterns that NixOS users ask about on NixOS Discourse:
a mkHost function, specialArgs, home-manager inside and outside NixOS, allowUnfreePredicate, and
configuration that depends on the other hosts. Each page shows the usual code and the yen form, and its checks
evaluate the real NixOS and home-manager configurations.
Many hosts, one baseReplace the mkHost function, readDir ./hosts and specialArgs.hostname with host instances and aspects.
System and home in one featureOne feature with NixOS and home-manager parts: no sharedModules, no extraSpecialArgs, no mkIf on the platform.
Unfree packages from many filesEach feature names its unfree packages. One allowUnfreePredicate per host reads them all.
Facts from other hostsknown_hosts, WireGuard peers and Syncthing devices built from the other hosts, without reading nixosConfigurations.