{ device = "/dev/nvme0n1"; content = { type = "gpt"; partitions = { boot = { size = "512M"; type = "EF00"; # EFI system partition content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; luks = { size = "100%"; content = { type = "luks"; name = "cryptroot"; settings.allowDiscards = true; content = { type = "lvm_pv"; vg = "vg0"; }; }; }; }; }; swap = { size = "32G"; # Adjust to your RAM size content = { type = "swap"; resumeDevice = true; }; }; lvm_vgs.vg0 = { lvs = { root = { size = "100%FREE"; content = { type = "filesystem"; format = "btrfs"; mountpoint = "/"; }; }; }; }; }