mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			464 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			464 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # enabled remote-build service
 | |
| { config, ... }:
 | |
| let
 | |
|   inherit (config.sops) secrets;
 | |
| in
 | |
| {
 | |
|   sops.secrets."nixremote/ssh_key" = { };
 | |
|   nix.buildMachines = [
 | |
|     {
 | |
|       hostName = "buehler.rocks";
 | |
|       system = "x86_64-linux";
 | |
|       supportedFeatures = [
 | |
|         "benchmark"
 | |
|         "kvm"
 | |
|         "big-parallel"
 | |
|       ];
 | |
|       sshUser = "nixremote";
 | |
|       sshKey = secrets."nixremote/ssh_key".path;
 | |
|       maxJobs = 4;
 | |
|     }
 | |
|   ];
 | |
| 
 | |
|   nix.distributedBuilds = true;
 | |
| }
 | 
