disk-config.nix
1 # Declarative disk layout for disko / nixos-anywhere 2 # Target: nvme0n1 (3.6 TB NVMe) 3 4 { ... }: 5 6 { 7 disko.devices.disk.nvme = { 8 device = "/dev/nvme0n1"; 9 type = "disk"; 10 content = { 11 type = "gpt"; 12 partitions = { 13 esp = { 14 size = "512M"; 15 type = "EF00"; 16 content = { 17 type = "filesystem"; 18 format = "vfat"; 19 mountpoint = "/boot"; 20 }; 21 }; 22 # Swap via swapfile instead — disko swap partition had kernel table sync issues 23 root = { 24 size = "100%"; 25 content = { 26 type = "filesystem"; 27 format = "ext4"; 28 mountpoint = "/"; 29 mountOptions = [ "noatime" ]; 30 }; 31 }; 32 }; 33 }; 34 }; 35 }