hestia

Nix binary cache inside the GitHub Actions cache, with no server or secrets

Image 1 of 1: Diagram of manifest versions m#1 to m#N, content-addressed packs of zstd chunks, and the manifest's four maps

A Rust daemon and action that chunks NARs with FastCDC, compresses each chunk with zstd, packs them into 64 MiB blobs in the GitHub Actions cache, and serves them back as a substituter through HTTP Range reads. A matrix subaction evaluates a flake once and builds each uncached check as its own job.

Trade-offs

  • A few large packs instead of one cache entry per store path, deduplicated in content-defined chunks. A nixpkgs bump uploads only what changed and stays clear of GitHub API rate limits.
  • The write-once cache is made mutable with a key sequence of manifest versions. Racing writers re-merge and retry, and merges are commutative and idempotent, so the winner doesn't matter.
  • Packs upload before the manifest that references them. A crash leaves an orphaned pack for GC, never a manifest pointing at nothing; an evicted pack falls through to the next substituter.

Q&A4

Store paths embed their references' hashes. Those occurrences are rewritten to zeros before chunking and restored on reassembly from the path's sorted reference set, so a chunk stays identical across rebuilds.

Reviews

Loading reviews

    More in Nix

    See all 7 →
    • trynixBoots any package from 13 years of nixpkgs in a browser tab
    • NixoriumRuns a school computer lab of NixOS PCs from one controller, offline
    • nixarchyOmarchy 4 vendored for NixOS, its menus rewired to Nix instead of pacman
    • PanixStateless deployment orchestrator for Nix flake installables across fleets
    • nix-plist-managerMac System Settings declared in Nix, named after what System Settings shows
    • containixcontainerd shim that runs Nix flakes on Kubernetes without container images

    More in CI/CD

    See all 19 →
    • MigrationPilotPostgreSQL migration linter that blocks unsafe DDL before merge
    • alintLinter for repository structure, files and config values
    • BuildprofProcess and file tracer that turns any Linux build into a timeline
    • tfplan2mdTerraform plans as readable Markdown for pull requests
    • Continuous ClaudeCoding agent loop that opens, checks and merges its own pull requests
    • native-packagesTurns a built app into Linux packages, macOS disk images and Windows installers

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON