{ ... }: { disko.devices.disk = { main = { type = "disk"; device = "/dev/vda"; content = { type = "gpt"; partitions = { ESP = { size = "2G"; type = "EF00"; start = "1M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "100%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; mountpoint = "/.root-disk"; mountOptions = [ "compress=zstd" "noatime" ]; subvolumes = { "@root" = { mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" ]; }; "@home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd" "noatime" ]; }; "@nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; "@persist" = { mountpoint = "/.persist"; mountOptions = [ "compress=zstd" "noatime" ]; }; "@nobackup" = { mountpoint = "/.nobackup"; mountOptions = [ "compress=zstd" "noatime" ]; }; "@snapshots" = { mountpoint = "/.snapshots"; mountOptions = [ "compress=zstd" "noatime" ]; }; }; }; }; }; }; }; }; fileSystems."/.persist".neededForBoot = true; fileSystems."/.nobackup".neededForBoot = true; swapDevices = [ { device = "/.nobackup/swapfile"; size = 64 * 1024; } ]; }