mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 07:55:36 +00:00
fix disko partition for single disk
This commit is contained in:
parent
cb60542980
commit
44821ea344
@ -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}"
|
||||||
|
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user