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>
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, lib, pkgs, ... }:
 | |
| 
 | |
| {
 | |
|   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 {
 | |
|     nix.settings = {
 | |
|       trusted-public-keys = [
 | |
|         "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk="
 | |
|       ];
 | |
| 
 | |
|       substituters = [
 | |
|         (if config.tvl.cache.builderball
 | |
|         then "https://cache.tvl.fyi"
 | |
|         else "https://cache.tvl.su")
 | |
|       ];
 | |
|     };
 | |
|   };
 | |
| }
 |