{ config, lib, pkgs, ... }: let inherit (lib) mkMerge mkOption optionalAttrs types ; boot = "cb03cf78-715e-4030-ba82-189ff8897eaf"; esp = "4E4C-1139"; luks = "0cf52ea1-16d1-4dec-a69a-bdac82bbcf25"; cryptroot = "6fb9ce3c-c870-4eb7-8199-6536ff898701"; in { config = mkMerge [ { fileSystems."/boot" = { device = "/dev/disk/by-uuid/${boot}"; fsType = "ext4"; }; fileSystems."/efi" = { device = "/dev/disk/by-uuid/${esp}"; fsType = "vfat"; options = [ "fmask=0137" "dmask=0027" ]; }; fileSystems."/" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@root" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@home" ]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@nix" ]; }; fileSystems."/var/cache" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_cache" ]; }; fileSystems."/var/log" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_log" ]; }; fileSystems."/var/spool" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_spool" ]; }; fileSystems."/var/tmp" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_tmp" ]; }; fileSystems."/var/lib/machines" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_lib_machines" ]; }; fileSystems."/var/lib/portables" = { device = "/dev/disk/by-uuid/${cryptroot}"; fsType = "btrfs"; options = [ "subvol=@var_lib_portables" ]; }; swapDevices = [ ]; } ]; }