forked from fediversity/simple-nixos-fediverse
		
	run installer as root
This commit is contained in:
		
							parent
							
								
									591dd87752
								
							
						
					
					
						commit
						6bbda4b4b3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -5,7 +5,7 @@ | |||
| */ | ||||
| nixpkgs: machine: | ||||
|   let | ||||
|     installer = { config, pkgs, ... }: | ||||
|     installer = { config, pkgs, lib, ... }: | ||||
|       let | ||||
|         bootstrap = pkgs.writeShellApplication { | ||||
|           name = "bootstrap"; | ||||
|  | @ -21,6 +21,7 @@ nixpkgs: machine: | |||
|           "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" | ||||
|         ]; | ||||
|         nixpkgs.hostPlatform = "x86_64-linux"; | ||||
|         services.getty.autologinUser = lib.mkForce "root"; | ||||
|         programs.bash.loginShellInit = '' | ||||
|           ${nixpkgs.lib.getExe bootstrap} | ||||
|         ''; | ||||
|  |  | |||
		Reference in a new issue
	
	 Valentin Gagarin
						Valentin Gagarin