14 lines
		
	
	
		
			375 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			375 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, ... }:
 | 
						|
{
 | 
						|
  nix.settings =
 | 
						|
    # Don't add hut as a cache to itself
 | 
						|
    assert config.networking.hostName != "hut";
 | 
						|
    {
 | 
						|
      extra-substituters = [ "http://hut/cache" ];
 | 
						|
      extra-trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ];
 | 
						|
 | 
						|
      # Set a low timeout in case hut is down
 | 
						|
      connect-timeout = 3; # seconds
 | 
						|
    };
 | 
						|
}
 |