nixos: Traefik and the CI runners as native services

Traefik keeps its role and its acme.json. Routes for the native
services (Forgejo, Garage, the dashboard, the XMPP certificate) are
written from Nix; the app containers keep declaring theirs as labels,
which Traefik reads through Podman's socket as it did through Docker's.

The asxpio runner uses the NixOS module and starts jobs through Podman;
the interop runner is its own unit because it connects with a UUID and
token instead of registering.

Tried on the rehearsal pair: Forgejo and Garage through Traefik, a
label-routed container, anonymous reads of the public bucket only, and
a workflow with a nix-latest and an ubuntu-latest job.

A restored Forgejo database still holds production's queued jobs,
schedules and Actions secrets. The test runner tried to take a queued
production job and was stopped only by the different secret key.
migration/rehearsal-sanitize-forgejo.sh removes all of that and must
run before a runner meets restored data.

Assisted-by: Claude:fable-5-2
This commit is contained in:
Sergei Poljanski 2026-11-16 23:17:09 +04:00
commit e95d97869f
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 581 additions and 120 deletions

View file

@ -24,6 +24,10 @@
"cron.update_mirrors".ENABLED = false;
};
# The names point at production, so no challenge can succeed here:
# ask the staging CA, and expect Traefik's self-signed certificate
asxpio.letsencryptCA = "https://acme-staging-v02.api.letsencrypt.org/directory";
asxpio.wireguard.peers = [
{
name = "asxpio-services";

View file

@ -37,6 +37,9 @@
autoStart = false;
});
# This runner would take real jobs of another project
systemd.services.forgejo-runner-interop.wantedBy = lib.mkForce [ ];
asxpio.wireguard.peers = [
{
name = "asxpio-ops";