← mirrors.mamad.dev

Nix Binary Cache Mirror

Substituter for cache.nixos.org

API Key
For scripts and CI:

        
      

nix.conf — substituters

substituters = https://mirrors.mamad.dev/nix/YOUR_KEY https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=

NixOS configuration.nix

nix.settings.substituters = [ "https://mirrors.mamad.dev/nix/YOUR_KEY" ];
nix.settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

Test it

curl -I https://mirrors.mamad.dev/nix/YOUR_KEY/nix-cache-info

How it works

Proxies cache.nixos.org. NAR archives, narinfo files, and cache metadata are cached for 7 days. Use the original public keys since packages are signed upstream.

home
built with Rust · mamad.dev