{ lib, ... }: {
  disko.devices = {
    disk.sda = {
      type = "disk";
      device = "/dev/nvme0n1";
      content = {
        type = "gpt";
        partitions = {
          boot = {
            name = "boot";
            size = "1M";
            type = "EF02";
          };
          ESP = {
            name = "esp";
            size = "512M";
            type = "EF00";
            content = {
              type = "filesystem";
              format = "vfat";
              mountpoint = "/boot";
              mountOptions = [ "uid=0" "gid=0" "fmask=0077" "dmask=0077" ];
            };
          };
          swap = {
            name = "swap";
            size = "80G";
            type = "8200";
            content = {
              type = "swap";
              resumeDevice = true;
            };
          };
          root = {
            name = "root";
            size = "100%";
            content = {
              type = "btrfs";
              extraArgs = [ "-f" ];
              subvolumes = {
                "/root" = { mountpoint = "/"; };
                "/nix" = {
                  mountOptions = [ "compress=zstd" "noatime" ];
                  mountpoint = "/nix";
                };
                # impermanance
                "/persist" = {
                  mountOptions = [ "compress=zstd" "noatime" ];
                  mountpoint = "/persist";
                };
                "/home" = {
                  mountOptions = [ "compress=zstd" "noatime" ];
                  mountpoint = "/home";
                };
              };
            };
          };
        };
      };
    };
  };
}
