My Nix config for my various NixOS nodes. Uses Colmena for deployment.
Some of the highlights & interesting things in this flake:
- The
hiveNixOS module hasmich.meta.sshoptions. These allow sharing sharing public SSH keys between colmena nodes, giving every machine a shared SSH known_hosts file. - Each node may have a special
meta.nixfile for providing information without evaluating the node. For example, themeta.nixmay provide a specific nixpkgs branch to evaluate the node with. - Various
presetsnodes can make use of, allowing the right level of granuality