forked from fediversity/fediversity
		
	Merge machine argument into the attrset argument
				
					
				
			This commit is contained in:
		
							parent
							
								
									d7bcb45789
								
							
						
					
					
						commit
						dc3a4dc4e8
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -31,9 +31,10 @@ in | |||
|       inherit (builtins) mapAttrs; | ||||
|     in | ||||
|     mapAttrs ( | ||||
|       vmname: | ||||
|       vmname: nixosConfiguration: | ||||
|       makeInstaller { | ||||
|         inherit (inputs) nixpkgs; | ||||
|         inherit nixosConfiguration; | ||||
|         hostKeys = { | ||||
|           ed25519 = { | ||||
|             private = ./hostKeys/${vmname}/ssh_host_ed25519_key; | ||||
|  |  | |||
|  | @ -7,8 +7,8 @@ | |||
| { | ||||
|   nixpkgs, | ||||
|   hostKeys ? { }, | ||||
|   nixosConfiguration, | ||||
| }: | ||||
| machine: | ||||
| 
 | ||||
| let | ||||
|   inherit (builtins) concatStringsSep attrValues mapAttrs; | ||||
|  | @ -25,8 +25,8 @@ let | |||
|         name = "bootstrap"; | ||||
|         runtimeInputs = with pkgs; [ nixos-install-tools ]; | ||||
|         text = '' | ||||
|           ${machine.config.system.build.diskoScript} | ||||
|           nixos-install --no-root-password --no-channel-copy --system ${machine.config.system.build.toplevel} | ||||
|           ${nixosConfiguration.config.system.build.diskoScript} | ||||
|           nixos-install --no-root-password --no-channel-copy --system ${nixosConfiguration.config.system.build.toplevel} | ||||
|           ${concatStringsSep "\n" ( | ||||
|             attrValues ( | ||||
|               mapAttrs (kind: keys: '' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue