# Example to create a bios compatible gpt partition { lib, ... }: { disko.devices = { disk.disk1 = { 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"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = "btrfs"; subvolumes = { "/rootfs" = { mountpoint = "/"; }; "/home" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/home"; }; "/nix" = { mountOptions = [ "compress=zstd" "noatime" ]; mountpoint = "/nix"; }; "/immich" = { mountOptions = [ "compress=zstd" "noatime" ]; mountpoint = "/var/lib/immich"; }; }; mountpoint = "/partition-root"; }; }; }; }; }; }; }