Install folder already exists, let's try another one
This commit is contained in:
		
							parent
							
								
									7e65e61c1a
								
							
						
					
					
						commit
						c102f8a05c
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -13,8 +13,9 @@ writeShellApplication | ||||||
|     # An install script for NixOS installation to /tmp |     # An install script for NixOS installation to /tmp | ||||||
|     set -e |     set -e | ||||||
|     pushd /tmp |     pushd /tmp | ||||||
|     git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./install |     rm -rf ./install-nix | ||||||
|     pushd ./install/nixos/hosts |     git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./install-nix | ||||||
|  |     pushd ./install-nix/nixos/hosts | ||||||
|     echo "Please choose the hostname you are installing to from the following list:" |     echo "Please choose the hostname you are installing to from the following list:" | ||||||
|     i=1 |     i=1 | ||||||
|     for d in */ |     for d in */ | ||||||
|  | @ -23,12 +24,12 @@ writeShellApplication | ||||||
|     done |     done | ||||||
|     select dir in "''${dirs[@]}"; do echo "you selected ''${dir}"; break; done |     select dir in "''${dirs[@]}"; do echo "you selected ''${dir}"; break; done | ||||||
|     popd |     popd | ||||||
|     pushd ./install |     pushd ./install-nix | ||||||
|     echo "NixOS Installing..." |     echo "NixOS Installing..." | ||||||
|     sudo nixos-install --flake .#"''${dir}" |     sudo nixos-install --flake .#"''${dir}" | ||||||
|     popd |     popd | ||||||
|     echo "Cleaning up repository in tmp..." |     echo "Cleaning up repository in tmp..." | ||||||
|     rm -rf ./install |     rm -rf ./install-nix | ||||||
|     popd |     popd | ||||||
|     notify-send -e "NixOS Install Succeeded!" --icon=software-update-available |     notify-send -e "NixOS Install Succeeded!" --icon=software-update-available | ||||||
|   ''; |   ''; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue