mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 15:54:52 +00:00
fix disko partition for single disk
This commit is contained in:
parent
cb60542980
commit
44821ea344
@ -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}"
|
||||
|
||||
'');
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ disks ? [ ], ... }: {
|
||||
{ disk, ... }: {
|
||||
disk = {
|
||||
boot = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 0;
|
||||
device = disk;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
|
Loading…
Reference in New Issue
Block a user