From 4d006c7b22d7e27fe0e4603b37eee251b42d3531 Mon Sep 17 00:00:00 2001
From: Aaron Honeycutt <aaronhoneycutt@protonmail.com>
Date: Mon, 17 Feb 2025 20:28:22 +0000
Subject: [PATCH] fix disko

---
 install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install.sh b/install.sh
index d54e069..7328a5e 100644
--- a/install.sh
+++ b/install.sh
@@ -23,7 +23,7 @@ sudo sed -i "s#/dev/sda#$driveName#g" /tmp/disko-config.nix
 # Step 2: Partitioning the drive used for the installation
 
 ## Run Disko to partition the disk
-sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disko-config.nix
+sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /tmp/disk-config.nix
 
 ## Generate Nix configuration
 sudo nixos-generate-config --no-filesystems --root /mnt