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 \
--dry-run \
--flake "path:$(pwd)#root" \
--arg disks '[ "/dev/$DISK" ]'
--arg disk \""/dev/''${DISK}"\"
${pkgs.gum}/bin/gum confirm \
"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 \
--mode create \
--flake "path:$(pwd)#root" \
--arg disks '[ '"/dev/$DISK"' ]'
--arg disk "/dev/''${DISK}"
'');

View File

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