{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/vda"; content = { type = "gpt"; partitions = { boot = { size = "1M"; type = "EF02"; priority = 1; }; root = { end = "-4G"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; mountOptions = [ "noatime" ]; }; }; swap = { size = "100%"; content = { type = "swap"; discardPolicy = "both"; resumeDevice = false; # resume from hiberation from this device }; }; }; }; }; vdb = { type = "disk"; device = "/dev/vdb"; content = { type = "gpt"; partitions = { root = { size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/srv"; mountOptions = [ "noatime" ]; }; }; }; }; }; }; }; }