nixfiles/hosts/lappy-t495/hardware.nix
2023-07-21 11:34:51 +00:00

27 lines
538 B
Nix

{tree, ...}: {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.availableKernelModules = [
# defaults from nixos-generate-config
"nvme"
"ehci_pci"
"xhci_pci"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
kernelModules = ["kvm-amd"];
};
hardware.cpu.amd.updateMicrocode = true;
services.tlp.settings = {
RUNTIME_PM_BLACKLIST = "05:00.3 05:00.4";
};
imports = with tree; [presets.nixos.normal-encrypted-drive];
}