{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_23234H800567"; content = { type = "gpt"; partitions = { esp = { name = "ESP"; type = "EF00"; size = "1G"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["defaults" "umask=0077"]; }; }; luks = { size = "100%"; content = { type = "luks"; name = "encrypted"; extraOpenArgs = []; settings = { allowDiscards = true; bypassWorkqueues = true; }; passwordFile = "/tmp/luks-pw"; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "/nix" = { mountpoint = "/nix"; mountOptions = ["noatime"]; }; "/persist" = { mountpoint = "/persist"; mountOptions = ["compress=zstd" "noatime"]; }; "/swap" = { mountpoint = "/.swapvol"; swap.swap1.size = "16G"; }; }; }; }; }; }; }; }; }; nodev = { "/" = { fsType = "tmpfs"; mountOptions = [ "defaults" "size=16G" "mode=755" ]; }; }; }; }