From bd84bf7c85d1f66ac45cbb069bf775dc9b9b0f68 Mon Sep 17 00:00:00 2001 From: Berwn Date: Sun, 21 Jun 2026 02:25:24 +0700 Subject: [PATCH] Set disk schema of machine: web01 to single-disk --- machines/web01/disko.nix | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 machines/web01/disko.nix diff --git a/machines/web01/disko.nix b/machines/web01/disko.nix new file mode 100644 index 0000000..a6acc4d --- /dev/null +++ b/machines/web01/disko.nix @@ -0,0 +1,50 @@ +# --- +# schema = "single-disk" +# [placeholders] +# mainDisk = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_108706511" +# --- +# 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-ddd46ebf135244608078712d6ec76691"; + device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_108706511"; + 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 = "/"; + }; + }; + }; + }; + }; + }; + }; +}