Skip to content

plans: self-hosted binary cache on 205-builder - #51

Merged
phonkd merged 1 commit into
mainfrom
worktree-plan-binary-cache
Aug 4, 2026
Merged

plans: self-hosted binary cache on 205-builder#51
phonkd merged 1 commit into
mainfrom
worktree-plan-binary-cache

Conversation

@phonkd

@phonkd phonkd commented Aug 4, 2026

Copy link
Copy Markdown
Owner

deploy-rs is a Rust program no public cache ships for our pinned rev (404 on cache.nixos.org and serokell's cachix), so hosts lacking it compile it from source. Plan a signed nix-serve-ng cache on 205 so x86_64-linux paths substitute instead of rebuilding. Notes the darwin deploy-rs compile on the Mac is out of scope for phase 1.

deploy-rs is a Rust program no public cache ships for our pinned rev
(404 on cache.nixos.org and serokell's cachix), so hosts lacking it
compile it from source. Plan a signed nix-serve-ng cache on 205 so
x86_64-linux paths substitute instead of rebuilding. Notes the darwin
deploy-rs compile on the Mac is out of scope for phase 1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 4, 2026 05:28
@phonkd
phonkd merged commit 1a65f03 into main Aug 4, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a draft plan describing how to stand up a signed, LAN-accessible binary cache on 205-builder (via nix-serve-ng) so other hosts can substitute x86_64-linux outputs (notably deploy-rs) instead of rebuilding from source.

Changes:

  • Introduces a Phase 1 approach using nix-serve-ng to expose 205’s existing /nix/store as a signed HTTP cache.
  • Outlines key management via sops (private key) plus client substituters/trusted-public-keys wiring for VMs and the Mac.
  • Documents rollout/verification steps and explicitly calls out the darwin build as out-of-scope for Phase 1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plans/binary-cache.md
Comment on lines +13 to +15
"get a prebuilt closure" from the live SSH build-offload path, so substitution
also works when a client isn't actively offloading (e.g. the `deploy
--remote-build` fallback, a client whose store was GC'd, or a fresh machine).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants