LAN-speed substitution
Serves signed Nix store paths from a flat binary-cache store on the local network. A miss is a 404, or with pull-through on, a path the box fetches, verifies and keeps.
How it fits
Off the LAN, hosts fall back to the remote cache after a low connect timeout.
nix copy pushes over HTTP, and mirrors generations to and from a durable S3-compatible remote cache.docker pull ghcr.io/zebradil/kasha-box:edgenix profile install github:Zebradil/kashacargo install --locked --git https://github.com/Zebradil/kashaServes signed Nix store paths from a flat binary-cache store on the local network. A miss is a 404, or with pull-through on, a path the box fetches, verifies and keeps.
Accepts plain nix copy pushes over HTTP with netrc or bearer auth; writes are refused when no token is set.
Pulls manifest-listed generations down from an S3-compatible remote cache before anyone asks, and mirrors local pushes back up.
Every ingested narinfo must carry a trusted signature or a CA field that reproduces its store path; the box verifies and never signs.
No nix and no database on the box; the index is rebuilt by scanning narinfos at boot. Ships as an OCI image built around that binary.
A NixOS module puts the box first and the remote cache second, with a low connect timeout for off-network fallback.
One binary with six commands, a NixOS module for consumers, and a push script for producers.
kasha servekasha emitkasha gckasha lskasha uploadauth=gcp remotes.nixosModules.consumerkasha-cache-pushoci-imageghcr.io/zebradil/kasha-box