Commit graph iac/nixos/flake.lock
Author SHA1 Message Date
a78ba0d4cd
deps: Update asxpio digest to 4927d2f
All checks were successful
nixos / nixos (push) Successful in 30s
2026-11-17 10:23:04 +00:00
0ee1c600e6
services: run asxpio from its flake, beside the container
All checks were successful
nixos / nixos (push) Successful in 26s
asxpi/asxpio now exports the app (bundlerEnv, ImageMagick 7) and a
module running the site and its monitor worker as hardened systemd
services. services runs the site on :3001 next to the container on ops;
no route yet, and the monitor stays off until the container's stops.
pg_hba lets the asxpio role in from 10.10.0.20 too (restarts Postgres
once); the settings and secrets, copied from the container's
environment with the database and Garage on ops' private address, are
in services' sops file. Renovate automerges its bumps like the other
apps'.

Assisted-by: Claude:opus-5-5
2026-11-17 14:12:45 +04:00
0b30461938
services: run datacenterbingo from its flake, beside the container
All checks were successful
nixos / nixos (push) Successful in 22s
asxpi/datacenterbingo now exports the app (bundlerEnv) and a module
running it as a hardened systemd service. services runs it on :3002
next to the container on ops; no route yet. It reaches Postgres and
Garage on ops over the private network: pg_hba lets the read-only bingo
role in from 10.10.0.20 (this restarts Postgres once), and its secrets,
copied from the container's environment, are in services' sops file.
Renovate automerges its bumps like the other apps'.

Assisted-by: Claude:opus-5-5
2026-11-17 13:52:15 +04:00
3522fdb4f1
czsk: take the fix for nginx's header check
All checks were successful
nixos / nixos (push) Successful in 22s
The previous czsk commit failed services' build: gixy refused a location
whose add_header dropped the server's security headers. comin kept the
running system; this moves the input to the fixed commit.

Assisted-by: Claude:opus-5-5
2026-11-17 13:30:05 +04:00
0b3bb707ae
services: serve czsk.it from its flake, beside the container
All checks were successful
nixos / nixos (push) Successful in 22s
czsk/czsk now exports the site and a module serving it from an nginx
virtual host with its headers, gzip and caching. services runs it on
:8082 next to the container on ops; no route yet. Renovate automerges
its bumps like the blog's.

Assisted-by: Claude:opus-5-5
2026-11-17 13:18:47 +04:00
352f69855f
deps: Update blog digest to bbd489c
All checks were successful
nixos / nixos (push) Successful in 22s
2026-11-17 08:53:02 +00:00
17bf20cdbc
flake: pin the blog input's commit in its URL, for Renovate
All checks were successful
nixos / nixos (push) Successful in 25s
Renovate's nix manager follows a flake input along its branch only when
the URL names a commit (rev=); without one it leaves the input to lock
file maintenance, which bumps every input at once. The blog input now
carries ref=main and the deployed rev, which Renovate moves forward.

Assisted-by: Claude:opus-5-5
2026-11-17 12:44:22 +04:00
4a6c4ac3a3
services: serve the blog from its flake, beside the container
All checks were successful
nixos / nixos (push) Successful in 22s
The blog's repository now exports the built site and a module serving it
from an nginx virtual host. services runs it on :8081 next to the
container on ops; Traefik does not route to it yet. Routes get an
optional priority, so the new route can take over from the container's
labels (1000) without removing them first. nginx now reloads for a
changed virtual host instead of restarting.

Assisted-by: Claude:opus-5-5
2026-11-17 12:19:50 +04:00
35bc42b01b
crawler: use the tool's own flake instead of a copy of the script
All checks were successful
nixos / nixos (push) Successful in 21s
crawler-alert.py was a byte-identical copy of the one in
asxpi/traefik-crawlers-statistics. That repository now has a package and
a NixOS module with the same three units and timers; iac takes it as a
flake input and keeps only the settings. The package also puts dig on
the script's path, which the Meta ASN check needs and lacked here.

Assisted-by: Claude:opus-5-5
2026-11-17 12:00:16 +04:00
9290a4e181
nixos: add comin, hosts pull their configuration from main
All checks were successful
nixos / nixos (push) Successful in 3m22s
Each host runs comin, which polls main of this repository every minute,
builds nixosConfigurations.<hostname> on the host and switches to it.
A branch testing-<hostname> on top of main is applied with `test` to
that host alone. Prometheus scrapes comin over the private network, and
a failing fetch, evaluation, build or switch alerts after 15 minutes.

CI still deploys this commit, which starts comin; the CI deploy job and
its SSH key go in the next commit, once comin runs on both hosts.

Assisted-by: Claude:opus-5-5
2026-11-17 11:39:03 +04:00
be68c5adef
nixos: describe both servers as NixOS systems
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
2026-11-16 22:59:59 +04:00