mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-19 02:50:12 +01:00
16 lines
274 B
Nix
16 lines
274 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
isEnabled = config.my.hardware.isAmdCpu;
|
|
in {
|
|
options.my.hardware.isAmdCpu = lib.mkEnableOption "amd cpu";
|
|
|
|
config = lib.mkIf isEnabled {
|
|
boot.kernelModules = ["kvm-amd"];
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
};
|
|
}
|