2024-11-18 15:44:10 -05:00
|
|
|
echo "enter config name"
|
2024-11-18 14:48:13 -05:00
|
|
|
read HOST
|
2024-11-18 14:29:44 -05:00
|
|
|
|
2024-11-18 17:53:34 -05:00
|
|
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy system/$HOST/disk.nix
|
|
|
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode format system/$HOST/disk.nix
|
|
|
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode mount system/$HOST/disk.nix
|
2024-11-18 14:48:13 -05:00
|
|
|
|
|
|
|
sudo nixos-install --flake .#$HOST
|
2024-07-03 18:17:11 -04:00
|
|
|
|
|
|
|
echo "REBOOT YOUR COMPUTER"
|