{ config, ... }: # Smaller disk layout for throwaway test VMs (20G vs production 50G). # Same partition scheme as modules/disko/proxmox.nix: GPT, ESP + swap + ext4 root. # Only covers the boot disk (scsi0 → /dev/sda). The DRBD data disk # (scsi1 → /dev/sdb) is left raw — drbdadm create-md initialises it. { disko.devices.disk.main = { type = "disk"; device = "/dev/sda"; imageSize = "20G"; imageName = config.networking.hostName; content = { type = "gpt"; partitions = { esp = { priority = 1; name = "ESP"; size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; extraArgs = [ "-F" "32" "-n" "boot" ]; }; }; swap = { size = "2G"; content = { type = "swap"; randomEncryption = false; }; }; root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; extraArgs = [ "-L" "nixos" ]; }; }; }; }; }; }