feat(ops/tvl-cache): add option for using experimental cache

Adds a `tvl.cache.builderball` option for cache *consumers* which enables the
experimental builderball cache. This cache uses whitby AND nevsky.

Change-Id: I4d99ba52d6ebd9a49e6fcb931d01e69383b15bcf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12986
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2025-01-12 19:56:00 +03:00 committed by clbot
parent c948a26d7d
commit d2d06241a0
4 changed files with 13 additions and 1 deletions

View file

@ -3,6 +3,7 @@
{
options = {
tvl.cache.enable = lib.mkEnableOption "the TVL binary cache";
tvl.cache.builderball = lib.mkEnableOption "use experimental builderball cache";
};
config = lib.mkIf config.tvl.cache.enable {
@ -12,7 +13,9 @@
];
substituters = [
"https://cache.tvl.su"
(if config.tvl.cache.builderball
then "https://cache.tvl.fyi"
else "https://cache.tvl.su")
];
};
};