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