Point Nix at https://hetzner-cache.numtide.com
and keep artifacts close. Faster builds. Lower egress. Happier teams.
cache.nixos.org serves billions of requests and petabytes of data every month.
Keep those bytes on your network. Spend your time — and your budget — on shipping, not redownloading.
{
nix.settings.extra-substituters = [ "https://hetzner-cache.numtide.com" ];
}
Replace the hostname if you access this via a different address.
extra-substituters = https://hetzner-cache.numtide.com
curl -I https://hetzner-cache.numtide.com/nix-cache-info
curl -I https://hetzner-cache.numtide.com/status # stats (if enabled)
Look for X-Cache-Status
headers and HTTP 200 responses.
Stats: /status
NixOS (public hostname):
{
imports = [ inputs.nixos-passthru-cache.nixosModules.nixos-passthru-cache ];
services.nixos-passthru-cache.enable = true;
services.nixos-passthru-cache.hostName = "cache.example.org";
}
NixOS (LAN mode):
{
services.nixos-passthru-cache.enable = true;
services.nixos-passthru-cache.lanMode = true; # defaults to hostname.local
}
Read more in the README.