asxpio-services runs the site and the monitor worker from this flake
(services.asxpio) and the containers are gone. The Dockerfile,
.dockerignore, docker-compose.yml and the Kaniko and deploy jobs go; CI
runs the tests and builds the package on every push, main included.
CLAUDE.md describes the new setup: storage on ops over the private
network, settings and secrets in iac's sops, no deploy secrets here.
Assisted-by: Claude:opus-5-5
packages.default is the app with its gems (bundlerEnv from Gemfile.lock
and gemset.nix, generated by bundix): bin/asxpio is Puma serving
config.ru, bin/asxpio-monitor the reachability worker. Photos are
resized with ImageMagick 7's magick. nixosModules.default
(services.asxpio) runs both as hardened systemd services with a dynamic
user, the web one with readiness from Puma (Type=notify); settings and
secrets come from one environment file. CI checks that gemset.nix
matches Gemfile.lock (bin/check-gemset) and builds the package.
Checked locally: migrations on an empty database, /healthz and /, an
invoice PDF with the Noto fonts, a photo resized to WebP and cropped.
The container deploy stays until the NixOS service has taken over.
Assisted-by: Claude:opus-5-5
storage moved to Postgres 18.7 (2026-11-13); the CI database service
follows, so tests run on the server version that ships.
Assisted-by: Claude:opus-5-5
Floating tags (17-alpine, 3.4-slim, nginx:alpine, :latest, :debug, @v7)
change under a deploy without anyone deciding it: the storage deploy
moved Postgres to 17.12 on its own because of postgres:17-alpine. Pin
every image and action to its exact current version, so each change
arrives as a reviewed Renovate PR and a rollback is a revert.
Assisted-by: Claude:opus-5-5
The runner mounts a persistent nix-store volume over /nix. The current
nixos/nix image makes /etc/nix/nix.conf a symlink into /nix/store, and
the volume does not hold that path, so the link dangles and appending
to it fails before checkout: "/etc/nix/nix.conf: No such file or
directory".
Pass the settings in NIX_CONFIG instead. Without a config file Nix also
falls back to build-users-group = nixbld, which the container lacks, so
set it empty and turn the sandbox off, as the image config does.
Assisted-by: Claude:opus-5-5