Start of the move from Ansible to NixOS. Services run as native NixOS services where nixpkgs has a module and as Podman containers otherwise; there is no Docker. Shared: users with their Debian UIDs, SSH with the Ansible role's crypto settings, nftables firewall, WireGuard (ops is the hub), sops-nix secrets per host, the restic backup script with its schedule and retention, mail on unit failure. asxpio-services: Xray, SillyTavern, Minecraft (Paper) and the ACME forwarder natively; XMPP stays in containers because the server is a custom build. asxpio-ops: Postgres, Garage and Forgejo natively. Roles, buckets, keys and grants move here from the storage repo's init scripts. Services that own data wait for /var/lib/.data-in-place, so an install never creates empty state where a restore is about to land. migration/*-data.sh move the Debian-era data into the new layout. hosts/rehearsal turns the two hosts into a test pair with its own keys and dummy secrets. Everything here ran there, Postgres, Garage, Forgejo, Minecraft and SillyTavern on a restored copy of production data. Three differences from the containers showed up and are handled: Garage rejects a 0440 credential file, Geyser needs libcrypto and netlink, SillyTavern ignores the module's listen flags. Production is untouched: both servers still run Debian under Ansible. Assisted-by: Claude:fable-5-2
19 lines
1 KiB
YAML
19 lines
1 KiB
YAML
# Who can decrypt what. A host decrypts with its SSH host key (converted
|
|
# with ssh-to-age); the admin key edits everything.
|
|
keys:
|
|
- &admin age19xvmm6j3h2u6mc3w6k65ufry4p5aa5lwu96p55h3e42p9wfzwc0qp2w7pk
|
|
- &asxpio_ops age1jxcl9cwk64wak2gyzf22vm3dpj80wtl76c7krywlrj7jjxftscrskrg3tf
|
|
- &asxpio_services age15ws8alg3ftsgmzvqxft09556g87s4n8c8v39nmvhaz6k50gp4e7se8acmg
|
|
# Throwaway servers: replace with the new host's key, then
|
|
# sops updatekeys secrets/rehearsal-*.yaml
|
|
- &rehearsal_ops age1hfaf7h2h43ahhql8zc6u3yr67yx4utnrlw57h6r32wnm4axvzves8pcl0r
|
|
- &rehearsal_services age1au6f8m6l245ddrunqf2a62xprnlevn9yrducynlay2tgknfxeeusj94j5l
|
|
creation_rules:
|
|
- path_regex: secrets/asxpio-ops\.yaml$
|
|
key_groups: [{ age: [*admin, *asxpio_ops] }]
|
|
- path_regex: secrets/asxpio-services\.yaml$
|
|
key_groups: [{ age: [*admin, *asxpio_services] }]
|
|
- path_regex: secrets/rehearsal-ops\.yaml$
|
|
key_groups: [{ age: [*admin, *rehearsal_ops] }]
|
|
- path_regex: secrets/rehearsal-services\.yaml$
|
|
key_groups: [{ age: [*admin, *rehearsal_services] }]
|