{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.loader.systemd-boot = { enable = true; configurationLimit = 5; }; boot.loader.efi.canTouchEfiVariables = true; # Use systemd in the initrd boot.initrd.systemd.enable = true; # Include fingerprint packages in the initrd so you can unlock LUKS with fingerprint boot.initrd.systemd.packages = [ pkgs.fprintd pkgs.libfprint-2-tod1-goodix ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = []; boot.kernelModules = [ "amdgpu" "kvm-amd" ]; boot.extraModulePackages = []; hardware.cpu.amd.updateMicrocode = lib.mkDefault true; # Ephemeral root on tmpfs fileSystems."/" = { device = "none"; fsType = "tmpfs"; options = [ "size=16G" "mode=755" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/8BC1-69F5"; fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/7530231d-afe3-4571-934b-826d7b1702b2"; fsType = "f2fs"; }; boot.initrd.luks.devices."luks-1506e138-e941-43e1-a133-06ae3299b62b".device = "/dev/disk/by-uuid/1506e138-e941-43e1-a133-06ae3299b62b"; hardware.graphics = { enable = true; extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl libva libva-utils ]; }; }