Point Nix at https://cache.club.muc.ccc.de 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://cache.club.muc.ccc.de" ];
}
Replace the hostname if you access this via a different address.
extra-substituters = https://cache.club.muc.ccc.de
curl -I https://cache.club.muc.ccc.de/nix-cache-info
curl -I https://cache.club.muc.ccc.de/status # stats (if enabled)
Look for X-Cache-Status headers and HTTP 200 responses.
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.