depot/third_party/tvl/ops/modules/tvl-cache.nix

20 lines
362 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
options = {
tvl.cache.enable = lib.mkEnableOption "the TVL binary cache";
};
config = lib.mkIf config.tvl.cache.enable {
nix = {
binaryCachePublicKeys = [
"cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
];
binaryCaches = [
"https://cache.tvl.su"
];
};
};
}