{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { ESP = { priority = 1; name = "ESP"; start = "1M"; end = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; luks = { size = "100%"; content = { name = "crypted"; type = "luks"; askPassword = true; settings = { allowDiscards = true; crypttabExtraOpts = [ "fido2-device=auto" "token-timeout=10" ]; }; content = { type = "btrfs"; extraArgs = ["-L" "nixos" "-f"]; subvolumes = { "/root" = { mountpoint = "/"; mountOptions = ["subvol=root" "compress=zstd" "noatime"]; }; "/home" = { mountpoint = "/home"; mountOptions = ["subvol=home" "compress=zstd" "noatime"]; }; "/nix" = { mountpoint = "/nix"; mountOptions = ["subvol=nix" "compress=zstd" "noatime"]; }; "/persistant" = { mountpoint = "/persistant"; mountOptions = ["subvol=persistant" "compress=zstd" "noatime"]; }; "/swap" = { mountpoint = "/swap"; swap.swapfile.size = "64G"; }; }; }; }; }; }; }; }; }; }; fileSystems."/persistant".neededForBoot = true; }