{ disko.devices = { disk.main = { device = "/dev/sda"; # This will be overwritten by disko-install type = "disk"; content = { type = "gpt"; partitions = { boot = { size = "1M"; type = "EF02"; # for grub MBR }; ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; loks = { size = "100%"; label = "luks"; content = { type = "luks"; name = "cryptroot"; extraOpenArgs = [ "--allow-discards" "--perf-no_read_workqueue" "--perf-no_write_workqueue" ]; settings = {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"]; }; "/persist" = { mountpoint = "/persist"; mountOptions = ["subvol=persist" "compress=zstd" "noatime"]; }; "/log" = { mountpoint = "/var/log"; mountOptions = ["subvol=log" "compress=zstd" "noatime"]; }; "/swap" = { mountpoint = "/swap"; swap.swapfile.size = "16G"; }; }; }; }; }; }; }; }; }; fileSystems."/persist".neededForBoot = true; fileSystems."/home".neededForBoot = true; fileSystems."/var/log".neededForBoot = true; }