nyx/modules/nixos/hardware/cpu/amd.nix

18 lines
290 B
Nix
Raw Normal View History

2025-01-12 17:18:13 +00:00
{
config,
lib,
...
}: let
inherit (config.olympus) device;
inherit (lib.modules) mkIf;
in {
2025-01-12 20:44:11 +00:00
config = mkIf (device.cpu == "amd" || device.cpu == "vm-amd") {
2025-01-12 17:18:13 +00:00
hardware.cpu.amd.updateMicrocode = true;
boot.kernelModules = [
"kvm-amd"
"amd-pstate"
];
};
}