blob: 05362db3a5fadaba674826713ad225a3b7f451c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ config, lib, ... }:
let cfg = config.my.hardware.amd;
in {
options.my.hardware.amd = with lib; {
enable = mkEnableOption "AMD related configuration";
};
config = lib.mkIf cfg.enable {
# Enable microcode update
hardware.cpu.amd.updateMicrocode = true;
boot.kernelModules = [ "kvm-amd" ];
};
}
|