Files
JakeHillion 592a47efa0
commit-validation / validate-single-commit (pull_request) Successful in 11s
buildbot/nix-eval Build done. (633 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
castaway: define non-NixOS fleet members from castaways/
Macs on the mesh were defined inline in flake.nix through
mkOgygiaConfiguration. Each borrowed certDir and topology from boron's
nixosConfiguration and carried hand-copied firewall rules from
modules/ogygia and modules/syncthing.

This names them castaways and defines each in castaways/FQDN/default.nix,
discovered like hosts/ and built by lib/mkCastaway.nix on top of a
shared modules/castaway. The parts of the fleet config both kinds of
member need now live in modules that depend on nothing NixOS provides,
which NixOS hosts and castaways both import:
- modules/dns/authoritative.nix: the IP map, split out of dns.nix.
- modules/ogygia/fleet.nix: the domain, certDir, topology and base
  inbound rules.
- modules/syncthing/nebula.nix: the syncthing group and inbound rule,
  enabled on a castaway with custom.syncthing.enable.

A castaway's definition is now its pubKey plus whatever groups and roles
it adds. On Syncthing hosts the syncthing inbound rule now comes before
the base rules in the Nebula config.

Test plan:
- Both castaways' ogygia.nebula.settings and specHash are byte-identical
  to before.
- li's nixos check derivation is unchanged; boron, iceman and phoenix
  differ only in the order of their Nebula inbound rules.
- CI
2026-10-25 20:49:30 +00:00
..