{ config, pkgs, lib, ... }: { boot.initrd.luks.devices = { "root".device = "/dev/disk/by-uuid/fae1b81e-894c-47b4-92e5-0a817fd6f66f"; "swap".device = "/dev/disk/by-uuid/dc1fe9ff-7eb7-40c3-8fbd-d99398e5e5d6"; }; fileSystems = { "/" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "subvol=nixos" ]; }; "/home" = { device = "/dev/mapper/root"; fsType = "btrfs"; options = [ "subvol=home" ]; }; "/boot" = { device = "/dev/disk/by-uuid/1FB9-3DB0"; fsType = "vfat"; }; }; swapDevices = [{ device = "/dev/mapper/swap"; }]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; }