From a4f505335b0fad56b1851385abcba5f7d35ec72e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 10 Jan 2025 02:32:29 -0800 Subject: finalize my iso installation medium --- live/iso.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'live/iso.nix') diff --git a/live/iso.nix b/live/iso.nix index dd50681..e06f175 100644 --- a/live/iso.nix +++ b/live/iso.nix @@ -130,19 +130,16 @@ if [ "$(id -u)" -eq 0 ]; then echo "ERROR! $(basename "$0") should be run as a regular user" exit 1 fi - if [ ! -d "$HOME/toughnix/" ]; then cd $HOME git clone https://git.nullring.xyz/toughnix.git fi vim "$HOME/toughnix/desktop/vars.nix" -vim "$HOME/toughnix/disko/sda-simple.nix" - -gum confirm --default=false "🔥 🔥 🔥 WARNING!!!! This will ERASE ALL DATA on the disk. Are you sure you want to continue?" +vim "$HOME/toughnix/desktop/sda-simple.nix" sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount "$HOME/toughnix/disko/sda-simple.nix" cd /mnt -sudo nixos-install --flake $HOME/toughnix#continuity-dell +sudo nixos-install --flake $HOME/toughnix#continuity '') ]; }; -- cgit