about summary refs log blame commit diff
path: root/ops/modules/tvl-cache.nix
blob: 4d574821df44712e84de02d0899d1e3fa3b5191f (plain) (tree)


















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