Add central Nix builder and binary cache - #68
Open
moons-14 wants to merge 1 commit into
Open
Conversation
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.
Summary
nix-builderwith automatic and magic rollbackfleet-buildandfleet-deploycommands for rooted builds and deploymentssecurity.secretsprofile so the builder can use SOPS without requiring that secretStorage policy
The documented Proxmox layout is:
//var/lib/nix-build/nix/storeThe builder starts emergency GC below 64 GiB free and targets 128 GiB free. Latest fleet closures remain protected by indirect GC roots under
/var/lib/nix-fleet/roots.Bootstrap required after merge
Harmonia remains stopped until the host-specific SOPS signing key exists. After the VM has a stable SSH host key:
.sops.yamlsecrets/hosts/nix-builder/system.yamlmodules/systems/nix/homelab-cache/public-keynetworking.homelab-cache-clienton client hostsExact commands are documented in
hosts/nix-builder/README.md.Validation
nixosConfigurations.nix-builder.config.system.build.toplevel.drvPathgit diff --checkA full closure build could not finish in the temporary validation container because its filesystem rejected a dependency unpack step that attempted
chownto uid 1000/gid 100. The targeted NixOS and deploy-rs evaluations passed. Nonh os switchwas run.