tvl-depot/ops/modules/tvl-cache.nix
sterni aaa994137a fix: reflect renames of Nix configuration options
Change-Id: I7e28ac3d71acd7d99a1d3ef97bef9422097e4abf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6154
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-08-25 16:34:39 +00:00

19 lines
369 B
Nix

{ config, lib, pkgs, ... }:
{
options = {
tvl.cache.enable = lib.mkEnableOption "the TVL binary cache";
};
config = lib.mkIf config.tvl.cache.enable {
nix.settings = {
trusted-public-keys = [
"cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
];
substituters = [
"https://cache.tvl.su"
];
};
};
}