Test host specific nixpkgs
This commit is contained in:
		
					parent
					
						
							
								c1a2aa1d63
							
						
					
				
			
			
				commit
				
					
						5856edeb47
					
				
			
		
					 4 changed files with 106 additions and 96 deletions
				
			
		
							
								
								
									
										47
									
								
								hosts.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								hosts.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,47 @@ | |||
| { nixpkgs, nixpkgs-unstable, ... }: | ||||
| let | ||||
|   environments = { | ||||
|     "proxmox" = [ | ||||
|       ./configuration/proxmox-vm | ||||
|       ./configuration/proxmox-vm/hardware-configuration.nix | ||||
|     ];  | ||||
|   }; | ||||
|   generateDefaults = hosts: builtins.mapAttrs (name: { | ||||
|     hostNixpkgs ? nixpkgs, | ||||
|     system ? "x86_64-linux", | ||||
|     pkgs ? hostNixpkgs.legacyPackages.${system}, | ||||
|     environment ? "proxmox", | ||||
|     site | ||||
|   }: { | ||||
|     inherit hostNixpkgs system pkgs environment site; | ||||
|     modules = [ | ||||
|       ./configuration/common | ||||
|       ./hosts/${name} | ||||
|     ] ++ (if environments ? ${environment} then environments.${environment} else []); | ||||
|   }) hosts; | ||||
| in | ||||
|   generateDefaults { | ||||
|     hydra = { | ||||
|       hostNixpkgs = nixpkgs-unstable; | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     iperf = { | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     jackett = { | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     nitter = { | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     nixos-coturn = { | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     tor-relay = { | ||||
|       site = "vs"; | ||||
|     }; | ||||
|     web-public-2 = { | ||||
|       hostNixpkgs = nixpkgs-unstable; | ||||
|       site = "vs"; | ||||
|     }; | ||||
|   } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue