mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 18:09:18 -05:00
21 lines
361 B
Nix
21 lines
361 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
config = lib.mkIf config.ar.hardware.cpu.amd {
|
||
|
boot = {
|
||
|
kernelModules = ["kvm-amd"];
|
||
|
kernelParams =
|
||
|
lib.optional (config.ar.hardware.laptop) "amd_pstate=active";
|
||
|
};
|
||
|
|
||
|
hardware = {
|
||
|
cpu.amd.updateMicrocode = true;
|
||
|
};
|
||
|
|
||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
};
|
||
|
}
|