2023-07-21 11:48:07 +01:00
|
|
|
{tree, ...}: {
|
2023-09-20 15:46:20 +01:00
|
|
|
imports = with tree; [
|
|
|
|
presets.nixos.encryptedDrive
|
|
|
|
];
|
2023-09-18 03:56:58 +01:00
|
|
|
|
2023-07-21 11:48:07 +01:00
|
|
|
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"];
|
|
|
|
};
|
2023-07-21 12:34:51 +01:00
|
|
|
|
2023-07-21 11:48:07 +01:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
2023-07-21 12:34:51 +01:00
|
|
|
|
|
|
|
services.tlp.settings = {
|
|
|
|
RUNTIME_PM_BLACKLIST = "05:00.3 05:00.4";
|
|
|
|
};
|
2023-07-21 11:48:07 +01:00
|
|
|
}
|