2021-12-15 23:44:37 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
tvl.cache.enable = lib.mkEnableOption "the TVL binary cache";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.tvl.cache.enable {
|
2022-08-25 14:54:32 +02:00
|
|
|
nix.settings = {
|
|
|
|
trusted-public-keys = [
|
2021-12-15 23:44:37 +01:00
|
|
|
"cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
|
|
|
|
];
|
|
|
|
|
2022-08-25 14:54:32 +02:00
|
|
|
substituters = [
|
2021-12-15 23:44:37 +01:00
|
|
|
"https://cache.tvl.su"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|