aaa994137a
Change-Id: I7e28ac3d71acd7d99a1d3ef97bef9422097e4abf Reviewed-on: https://cl.tvl.fyi/c/depot/+/6154 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
19 lines
369 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
}
|