tvl-depot/users/wpcarro/nixos/modules/hadrian-cache.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
422 B
Nix
Raw Normal View History

# If enabled, use Hadrian's Nix cache.
{ config, lib, pkgs, ... }:
{
options = {
hadrian.cache.enable = lib.mkEnableOption "Hadrian's binary cache";
};
config = lib.mkIf config.hadrian.cache.enable {
nix.settings.trusted-public-keys = [
"cache.hadrian.internal:XWdYSn5ZASj6IqZd4nnDBXJmahQEolBrtq9DvSe0UT0="
];
nix.settings.substituters = [
"http://cache.hadrian.internal"
];
};
}