blob: e8b80b039d7a8cb5d2abe0979d3d6af5751548c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ 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" ];
};
}
|