about summary refs log tree commit diff
path: root/ops/modules/tvl-cache.nix
blob: 4d574821df44712e84de02d0899d1e3fa3b5191f (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 = {
      binaryCachePublicKeys = [
        "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
      ];

      binaryCaches = [
        "https://cache.tvl.su"
      ];
    };
  };
}