fix/nix-cache-only-when-it-exists #135

Merged
tepichord merged 2 commits from fix/nix-cache-only-when-it-exists into main 2026-11-12 14:22:39 -08:00
Owner
No description provided.
`nix.conf` named `https://cache.faun-snapper.ts.net/milner` as an extra
substituter, and nothing answers that name — no Service in the cluster, no
tailnet node. Nix treats it as absent, but not for free: five retried lookups
and six lines of `warning: unable to download` per invocation, in every step of
a pipeline and every `nix` call of a workspace, before the store is
cache-less anyway. A cold workspace start opened with that block in each of its
ten-odd calls and then built what it wanted from source.

`nixCacheEnabled` is now the switch, and it is off; the URL stays spelled beside
it, so the change that deploys the cache flips one binding. `nixBaseCheck` holds
both answers of the switch: with it on, the line present in `nix.conf` and read
back by the image's own `nix config show`; with it off, no `extra-substituters`
line at all and `substituters = https://cache.nixos.org/` parsed out of the
file, because an image that still carried the dead URL would pay the retry chain
the switch exists to stop.
chore(images): re-publish reaper and annia-enqueuer for a flake.nix edit
All checks were successful
ci/woodpecker/pr/gates Pipeline was successful
ci/woodpecker/pull_request_closed/cleanup Pipeline was successful
51614b6dc5
The two guards that watch the pin compare `flake.nix` and `flake.lock` as a set,
and this branch touches `flake.nix` without moving the nixpkgs pin — so
`reaper-tag-guard` and `enqueuer-tag-guard` read it as "inputs moved, tag did
not" and refuse. The set is deliberately coarse: a derivation lives in
`flake.nix` too, so dropping it from the comparison would trade this false
positive for a false negative on the change that edits the derivation itself
(third time; the narrowing is a policy change with its own trade, not a fix
this branch should make).

So the tag moves, which is the allowed direction: a re-publish of an unchanged
image, byte-identical to the one before it.
tepichord deleted branch fix/nix-cache-only-when-it-exists 2026-11-12 14:22:39 -08:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tepichord/milner!135
No description provided.