{ inputs, lib, ... }: { imports = [ inputs.disko.nixosModules.disko ]; disko.devices = { disk = { main = { device = "/dev/disk/by-label/NIXOS_SD"; type = "disk"; content = { type = "gpt"; partitions = { boot = { name = "boot"; size = "1M"; type = "EF02"; }; ESP = { name = "ESP"; priority = 1; size = "4G"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; plainSwap = { size = "8G"; content = { type = "swap"; discardPolicy = "both"; # Both "once" and page discard policies }; }; root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; }; }; }; }; }; }