[INVESTIGATION] Evaluate numtide/nixos-passthru-cache for potential NixOS configuration integration #149
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#149
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Investigation: numtide/nixos-passthru-cache
Overview
Investigate the numtide/nixos-passthru-cache repository to determine if it provides valuable enhancements, simplifications, or performance improvements for the NixOS configuration at https://git.nimmog.uk/nimmo/nixos-config.
Repository Information
Investigation Goals
Current Related Infrastructure
Specific Areas to Examine
Suggested Evaluation Approach
Decision Criteria
Notes for Investigating Agent
Evaluation conclusion: defer; current infrastructure already covers the dominant path
Reviewed upstream
numtide/nixos-passthru-cacheat commit964a6cb.Corrected scope
The issue premise is inaccurate: this is not a cache for NixOS
passthruattributes or flake evaluation. It is a beta nginx pull-through binary cache, primarily intended for organizations with many Nix machines repeatedly downloading the same objects fromcache.nixos.org.The module provisions nginx caching, defaults to a 200 GiB cache, opens ports 80 and 443, and selects either ACME-backed HTTPS or an HTTP/mDNS LAN mode. It can proxy one configurable upstream.
Fit with this repository
https://attic.nimmog.uk/nixosbeforecache.nixos.org. The normal fleet-update path therefore consumes the exact prebuilt closures from the local Attic service rather than independently reconstructing them from the public cache.cache.nixos.orgmisses from ad-hoc builds, but no traffic or egress evidence currently shows those misses are material enough to justify a second cache service.Validation performed
nix flake check --no-buildpassed against the reviewed upstream commit.26.11at the evaluated revision) using a container test configuration.The issue's proposed “greater than 20% flake-check speedup” criterion does not apply: this service caches binary-cache HTTP responses and does not cache Nix evaluation.
Decision
Do not integrate or deploy
nixos-passthru-cachenow. Attic already optimizes the predictable, high-value fleet update path, while the remaining benefit is unmeasured.Revisit only after collecting evidence that multiple hosts are repeatedly downloading substantial data directly from
cache.nixos.orgdespite Attic. A future proof of concept should first measure public-cache bytes and duplicate-request rate, then compare those savings against storage, nginx, monitoring, and ingress complexity.