# Example to create a bios compatible gpt partition { lib, ... }: { disko.devices = { disk.disk1 = { device = lib.mkDefault "/dev/nvme0n1"; type = "disk"; content = { type = "gpt"; partitions = { esp = { priority = 1; name = "ESP"; start = "1M"; end = "1024M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; 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"; }; }; }; }; }; }; }; }; }