I’m creating more complex configurations lately - with multiple files for each machine, and for multiple machines.
Are there tools or techniques to help clarify which imports are used for a given configuration (helping with completeness) and to compare configurations for different machines, to help where machines may differ very little in their config Perhaps even only machine name and network id).
and I auto-import everything in modules, leaving host-specific config in hosts.
Nixos modules within modules are written with both options and config allowing finer per-host control when they are consumed by a config. This is the same style used by NixOS modules in nixpkgs.