plans: self-hosted binary cache on 205-builder - #51
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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-ngto expose 205’s existing/nix/storeas a signed HTTP cache. - Outlines key management via sops (private key) plus client
substituters/trusted-public-keyswiring 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 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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.