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

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

20 lines
369 B
Nix
Raw Permalink Normal View History

{ 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"
];
};
};
}