fix disko partition for single disk

This commit is contained in:
Noah Masur 2023-02-26 20:03:39 -05:00
parent cb60542980
commit 44821ea344
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
--mode create \ --mode create \
--dry-run \ --dry-run \
--flake "path:$(pwd)#root" \ --flake "path:$(pwd)#root" \
--arg disks '[ "/dev/$DISK" ]' --arg disk \""/dev/''${DISK}"\"
${pkgs.gum}/bin/gum confirm \ ${pkgs.gum}/bin/gum confirm \
"This will ERASE ALL DATA on the disk /dev/''${DISK}. Are you sure you want to continue?" \ "This will ERASE ALL DATA on the disk /dev/''${DISK}. Are you sure you want to continue?" \
@ -32,7 +32,7 @@
${pkgs.disko-packaged}/bin/disko \ ${pkgs.disko-packaged}/bin/disko \
--mode create \ --mode create \
--flake "path:$(pwd)#root" \ --flake "path:$(pwd)#root" \
--arg disks '[ '"/dev/$DISK"' ]' --arg disk "/dev/''${DISK}"
''); '');

View File

@ -1,8 +1,8 @@
{ disks ? [ ], ... }: { { disk, ... }: {
disk = { disk = {
boot = { boot = {
type = "disk"; type = "disk";
device = builtins.elemAt disks 0; device = disk;
content = { content = {
type = "table"; type = "table";
format = "gpt"; format = "gpt";