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