# Example to create a bios compatible gpt partition { lib, disks, ... }: { disk = lib.genAttrs disks (dev: { device = dev; type = "disk"; content = { type = "table"; format = "gpt"; partitions = [ { type = "partition"; name = "boot"; start = "1MiB"; end = "100MiB"; bootable = true; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; } { name = "nix"; type = "partition"; start = "128MiB"; end = "100%"; content = { type = "btrfs"; extraArgs = "-f"; # Override existing partition subvolumes = { "/" = { mountOptions = ["noatime" "compress=zstd"]; }; }; }; } ]; }; }); nodev = { "/" = { fsType = "tmpfs"; mountOptions = [ "noexec" "defaults" "size=2G" "mode=755" ]; }; }; }