The existing authoritative DNS setup only served the neb.jakehillion.me zone. We needed home.jakehillion.me and iot.home.jakehillion.me as fully-managed zones with identical DNSSEC policies so internal services can have proper DNS names. Refactored the authoritative DNS module to generate separate zone files for all three domains, each with the same SOA, NS records, and DNSSEC signing configuration. Added corresponding A records for homeassistant and stinger subdomains under both new zones. Updated the ACME DNS API to accept multiple comma-separated domains so the jakehillion Caddy DNS provider can issue certificates for any zone. Migrated Home Assistant Caddy virtual hosts from the old hillion.co.uk domains to the new jakehillion.me domains. Test plan: - nix fmt passed - nix-instantiate validated syntax for all modified files
nixos
Building Raspberry Pi images
Raspberry Pi images that support headless SSH can be built as follows:
nix build '.#nixosConfigurations."li.pop.neb.jakehillion.me".config.formats.sd-aarch64'
Although this will have some support for Nebula it will not be authenticated without further setup. This is because each device generates its own signing key that still needs to be signed by the CA.
This command should be run on a Linux machine with an aarch64 processor or binfmt misc support (rooster.cx and merlin.rig at the time of writing). When creating Pi images you might need to comment out or update the existing file system UUID.
Building on another system
Some systems are very slow at rebuilding themselves, with one example being Boron struggling to build Mongo. Currently I have no centralised build process so we don't have signed images. This process works:
STORE_PATH=`nix build --no-link --print-out-paths '.#nixosConfigurations."boron.cx.neb.jakehillion.me".config.system.build.toplevel'`
nix-store --export $(nix-store --query --requisites $STORE_PATH) | zstd > closure.nar.zst
cat closure.nar.zst | ssh boron.cx.neb.jakehillion.me sh -c 'unzstd | sudo nix-store --import'
Then use update or nixos-rebuild as normal on the host (provided it can evaluate the Nix).