{ ... }: { fileSystems."/" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=root" "compress=zstd" "noatime" ]; }; fileSystems."/home" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=nix" "compress=zstd" "noatime" ]; }; fileSystems."/nix" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=nix" "compress=zstd" "noatime" ]; }; fileSystems."/var/log" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=log" "compress=zstd" "noatime" ]; neededForBoot = true; }; fileSystems."/var/lib" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=lib" "compress=zstd" "noatime" ]; neededForBoot = true; }; fileSystems."/persist" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=persist" "compress=zstd" "noatime" ]; neededForBoot = true; }; fileSystems."/boot" = { device = "/dev/disk/by-partlabel/boot"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; fileSystems."/persist/swap" = { device = "/dev/mapper/cryptroot"; fsType = "btrfs"; options = [ "subvol=swap" "noatime" "nodatacow" "compress=no" ]; }; swapDevices = [{ device = "/persist/swap/swapfile"; size = 18 * 1024; }]; }