Update install a little more
This commit is contained in:
		
							parent
							
								
									633f07d12e
								
							
						
					
					
						commit
						f480fcb86d
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@ writeShellApplication
 | 
			
		|||
{
 | 
			
		||||
  name = "install-nix-no-inhibit";
 | 
			
		||||
 | 
			
		||||
  runtimeInputs = [];
 | 
			
		||||
  runtimeInputs = [git gum];
 | 
			
		||||
 | 
			
		||||
  text = ''
 | 
			
		||||
    # An install script for NixOS installation to /tmp
 | 
			
		||||
| 
						 | 
				
			
			@ -25,6 +25,16 @@ writeShellApplication
 | 
			
		|||
    select dir in "''${dirs[@]}"; do echo "you selected ''${dir}"; break; done
 | 
			
		||||
    popd > /dev/null
 | 
			
		||||
    pushd ./install-nix > /dev/null
 | 
			
		||||
    gum confirm  --default=false \
 | 
			
		||||
        "🔥 🔥 🔥 WARNING!!!! This will ERASE ALL DATA on the disk for ''${dir}. Are you sure you want to continue?"
 | 
			
		||||
 | 
			
		||||
        echo "Partitioning Disks"
 | 
			
		||||
        sudo nix run github:nix-community/disko \
 | 
			
		||||
        --extra-experimental-features "nix-command flakes" \
 | 
			
		||||
        --no-write-lock-file \
 | 
			
		||||
        -- \
 | 
			
		||||
        --mode zap_create_mount \
 | 
			
		||||
        "./disko/''${dir}/default.nix"
 | 
			
		||||
    echo "NixOS Installing..."
 | 
			
		||||
    systemd-inhibit --what=idle sudo nixos-install --flake .#"''${dir}"
 | 
			
		||||
    popd > /dev/null
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue