feat(cum-ci): serve the CI store as a binary cache; let kally and quartz keep their nixpkgs #60
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/ci-binary-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CI already builds kally and quartz on every push, into cum-ci's store. cum-media could not use those builds for two reasons: no VM could fetch from cum-ci, and following our nixpkgs made cum-media build different derivations anyway. So every deploy rebuilt both from source, using a lot of RAM.
nix flake locklocked kally's nixpkgs to a fresh nixos-unstable instead of the one kally's own lock pins, so that lock entry is set to kally's pin (f9a75f4) by hand. A laternix flake update kallytakes it from kally's lock again.Evidence
The derivations cum-media asks for, compared with what each project's CI builds at the locked revision (
nix eval ...drvPath):hplqq87j…-kally-0.2.0i4mm0bik…-kally-0.2.0i4mm0bik…-kally-0.2.0lri0jq5p…-quartz-server-0.1.0ky4yf93h…-quartz-server-0.1.0ky4yf93h…-quartz-server-0.1.0nix flake check: all six nixosConfigurations evaluate, and all checks pass.http://192.168.1.206:5000and its trusted keys includecum-ci-1. cum-ci's substituters do not include it. cum-ci opens TCP 5000.curl http://192.168.1.206:5000/<hash>.narinfo.Merge Danger
Door: two-way
Reverting the commits restores the old behaviour. The signing key stays in sops either way.
Blast Radius: all-VMs
Every VM gets a new substituter. If cum-ci is down, Nix skips it and falls back to the public caches or to building, as it does today. Deploy cum-ci first: until harmonia runs there, other VMs try an address that refuses connections. Builds still work, with a warning. Harmonia serves anything in cum-ci's store to the LAN, which is the same exposure as the other LAN-only services. cum-media's closure also gains an unstable Node 26, a couple hundred MB.
🤖 Generated with Claude Code