about summary refs log tree commit diff
path: root/ops/modules/tvl-cache.nix
blob: 683818d103b71520457ea0e991f37454c27490ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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"
      ];
    };
  };
}