18 lines
290 B
Nix
18 lines
290 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (config.olympus) device;
|
||
|
inherit (lib.modules) mkIf;
|
||
|
in {
|
||
|
config = mkIf (device.cpu == "amd" || device.cpu == "vm-amd") {
|
||
|
hardware.cpu.amd.updateMicrocode = true;
|
||
|
|
||
|
boot.kernelModules = [
|
||
|
"kvm-amd"
|
||
|
"amd-pstate"
|
||
|
];
|
||
|
};
|
||
|
}
|