# Example to create a bios compatible gpt partition { lib, ... }: { disko.devices = { disk.main = { device = lib.mkDefault "/dev/nvme0n1"; type = "disk"; content = { type = "gpt"; partitions = { boot = { name = "boot"; size = "1M"; type = "EF02"; }; esp = { name = "ESP"; size = "1G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" # ignore access times ]; }; }; }; }; }; }; }