diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-10 02:32:29 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-10 02:32:29 -0800 |
commit | a4f505335b0fad56b1851385abcba5f7d35ec72e (patch) | |
tree | 28b4871db17b4218d3520cea857d34bc19f12035 /live/iso.nix | |
parent | a9d6afe9c3df4ef8bef2dd933b7c302754aca15e (diff) |
finalize my iso installation medium
Diffstat (limited to 'live/iso.nix')
-rw-r--r-- | live/iso.nix | 7 |
1 files changed, 2 insertions, 5 deletions
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 '') ]; }; |