about summary refs log blame commit diff
path: root/ops/modules/tvl-cache.nix
blob: 683818d103b71520457ea0e991f37454c27490ea (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                                 

                             


                                                                   
                      




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