From 8d9981ee5a30943c41c78e755115240aebc45bbb Mon Sep 17 00:00:00 2001 From: Berwn Date: Thu, 18 Jun 2026 11:32:33 +0700 Subject: [PATCH] Set disk schema of machine: mx1 to single-disk --- machines/mx1/disko.nix | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 machines/mx1/disko.nix diff --git a/machines/mx1/disko.nix b/machines/mx1/disko.nix new file mode 100644 index 0000000..92f3acd --- /dev/null +++ b/machines/mx1/disko.nix @@ -0,0 +1,50 @@ +# --- +# schema = "single-disk" +# [placeholders] +# mainDisk = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_117494657" +# --- +# This file was automatically generated! +# CHANGING this configuration requires wiping and reinstalling the machine +{ + + boot.loader.grub.efiSupport = true; + boot.loader.grub.efiInstallAsRemovable = true; + boot.loader.grub.enable = true; + disko.devices = { + disk = { + main = { + name = "main-5a0919ffeb6044a39b7d44bba8895ff2"; + device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_117494657"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + "boot" = { + size = "1M"; + type = "EF02"; # for grub MBR + priority = 1; + }; + ESP = { + type = "EF00"; + size = "500M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +}