mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 11:30:20 +00:00
17 lines
264 B
Nix
17 lines
264 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (config.olympus) device;
|
|
inherit (lib.modules) mkIf;
|
|
in {
|
|
config = mkIf (device.cpu == "amd") {
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
boot.kernelModules = [
|
|
"kvm-amd"
|
|
"amd-pstate"
|
|
];
|
|
};
|
|
}
|