A fancy new service available for everyone
A brand spankin' new configuration for the binary cache has been written, which has been completely overhauled the caching and delivery logic in numerous ways. The new configuration should deliver significantly quicker time-to-first-byte, and also increase origin offload substantially. Logging is enabled and can help diagnose issues and watch long-term cache usage.
Before we roll it out to the main configuration, we're making sure to test it thoroughly first. And we need your help! Ready for it? Read below.
Opting in is as simple as adding the following lines to /etc/nix/nix.conf
:
substituters = <https://aseipp-nix-cache.freetls.fastly.net>
/etc/nix/nix.conf
Once this has been configured, you'll also want to restart the Nix daemon:
systemctl restart nix
Add the following to /etc/nixos/configuration.nix
:
{
nix.binaryCaches = [ "<https://aseipp-nix-cache.freetls.fastly.net>" ];
}
/etc/nixos/configuration.nix
And rebuild:
nixos-rebuild switch