{...}: { disko.devices = { disk = { nvme0 = { type = "disk"; device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { esp = { size = "512MiB"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "defaults" ]; }; }; luks = { size = "100%"; content = { type = "luks"; name = "crypted"; settings.allowDiscards = true; passwordFile = "/tmp/secret.key"; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "@persistent" = { mountpoint = "/persistent"; mountOptions = ["compress=zstd" "noatime"]; }; "@nix" = { mountpoint = "/nix"; mountOptions = ["compress=zstd" "noatime"]; }; "@swap" = { mountpoint = "/.swapvol"; swap.swapfile.size = "10G"; }; }; }; }; }; }; }; }; }; }; }