add Puenktchen builder
This commit is contained in:
		
							parent
							
								
									87fa30b294
								
							
						
					
					
						commit
						ff8caa5192
					
				
					 7 changed files with 52 additions and 17 deletions
				
			
		|  | @ -21,13 +21,18 @@ | |||
| 
 | ||||
|   server.enable = true; | ||||
| 
 | ||||
|   common.syncthing = { | ||||
|     enable = true; | ||||
|     basePath = "/mnt/data/services/syncthing/data"; | ||||
|     devices = { | ||||
|       Lenni = { id = "NDERY5Q-N7L6CPD-RMIFA65-OC3HP6T-ONZOB7Y-7FLS4VR-UWBKBZV-XJJVGQG"; }; | ||||
|       Puenktchen = { id = "REVJKI3-3QYKRZN-QDKQ24V-UNZQ4L2-R7XHQCE-N4H3FSY-IARCHM3-PMWBJQP"; }; | ||||
|       Damin = { id = "HAGKFGG-EMCPKHG-Y7V2ACJ-DJVAIIA-A6TNGTQ-VWPB3F5-PES673W-W2YBJAD"; }; | ||||
|   common = { | ||||
| 
 | ||||
|     builder.enable = true; | ||||
| 
 | ||||
|     syncthing = { | ||||
|       enable = true; | ||||
|       basePath = "/mnt/data/services/syncthing/data"; | ||||
|       devices = { | ||||
|         Lenni = { id = "NDERY5Q-N7L6CPD-RMIFA65-OC3HP6T-ONZOB7Y-7FLS4VR-UWBKBZV-XJJVGQG"; }; | ||||
|         Puenktchen = { id = "REVJKI3-3QYKRZN-QDKQ24V-UNZQ4L2-R7XHQCE-N4H3FSY-IARCHM3-PMWBJQP"; }; | ||||
|         Damin = { id = "HAGKFGG-EMCPKHG-Y7V2ACJ-DJVAIIA-A6TNGTQ-VWPB3F5-PES673W-W2YBJAD"; }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,10 +20,15 @@ | |||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   common.syncthing = { | ||||
|     enable = true; | ||||
|     devices = { | ||||
|       Anton = { id = "SIMFE5V-UHVQLHM-3ES7TAM-XIGP6TL-WCC37VY-B5ET6LJ-LPC2QIL-MYG4OQR"; }; | ||||
|   common = { | ||||
| 
 | ||||
|     builder.enable = true; | ||||
| 
 | ||||
|     syncthing = { | ||||
|       enable = true; | ||||
|       devices = { | ||||
|         Anton = { id = "SIMFE5V-UHVQLHM-3ES7TAM-XIGP6TL-WCC37VY-B5ET6LJ-LPC2QIL-MYG4OQR"; }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| { lib, config, ... }: | ||||
| lib.mkIf config.server.enable { | ||||
| lib.mkIf config.common.builder.enable { | ||||
|   users.users.builder = { | ||||
|     group = "builder"; | ||||
|     isNormalUser = true; | ||||
|  | @ -10,6 +10,7 @@ | |||
| 
 | ||||
|     ./autoupdate.nix | ||||
|     ./boot.nix | ||||
|     ./builder.nix | ||||
|     ./envvar.nix | ||||
|     ./garbage-collect.nix | ||||
|     ./keyd.nix | ||||
|  |  | |||
|  | @ -1,18 +1,33 @@ | |||
| { lib, config, ... }: | ||||
| lib.mkIf config.desktop.enable { | ||||
| 	nix.buildMachines = [ { | ||||
| 	nix.buildMachines = [ | ||||
|   { | ||||
| 	  hostName = "Anton"; | ||||
|     sshUser = "builder"; | ||||
| 	  systems = [ "x86_64-linux" "aarch64-linux" ]; | ||||
|     protocol = "ssh"; | ||||
|     protocol = "ssh-ng"; | ||||
| 	  # if the builder supports building for multiple architectures,  | ||||
| 	  # replace the previous line by, e.g. | ||||
| 	  # systems = ["x86_64-linux" "aarch64-linux"]; | ||||
| 	  maxJobs = 1; | ||||
| 	  maxJobs = 4; | ||||
| 	  speedFactor = 2; | ||||
| 	  supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; | ||||
| 	  mandatoryFeatures = [ ]; | ||||
| 	}]; | ||||
| 	} | ||||
|   { | ||||
| 	  hostName = "Puenktchen"; | ||||
|     sshUser = "builder"; | ||||
| 	  systems = [ "x86_64-linux" "aarch64-linux" ]; | ||||
|     protocol = "ssh-ng"; | ||||
| 	  # if the builder supports building for multiple architectures,  | ||||
| 	  # replace the previous line by, e.g. | ||||
| 	  # systems = ["x86_64-linux" "aarch64-linux"]; | ||||
| 	  maxJobs = 8; | ||||
| 	  speedFactor = 4; | ||||
| 	  supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; | ||||
| 	  mandatoryFeatures = [ ]; | ||||
|   } | ||||
|   ]; | ||||
| 	nix.distributedBuilds = true; | ||||
| 	# optional, useful when the builder has a faster internet connection than yours | ||||
| 	nix.extraOptions = '' | ||||
|  |  | |||
|  | @ -1,6 +1,16 @@ | |||
| { lib, ... }: | ||||
| { | ||||
|   options = { | ||||
| 
 | ||||
|     common = { | ||||
| 
 | ||||
|       builder.enable = lib.mkOption { | ||||
|         default = false; | ||||
|         type = lib.types.bool; | ||||
|       }; | ||||
| 
 | ||||
|     }; | ||||
| 
 | ||||
|     desktop = { | ||||
| 
 | ||||
|       enable = lib.mkOption { | ||||
|  |  | |||
|  | @ -2,7 +2,6 @@ | |||
| { | ||||
| 
 | ||||
|   imports = [ | ||||
|     ./builder.nix | ||||
|     ./ssh-server.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue