flake/nixos/modules/hardware/components/cpu/intel.nix

18 lines
436 B
Nix
Raw Normal View History

{
lib,
config,
...
}: let
cfg = config.myFlake.nixos.hardware.components.cpu.intel;
in {
options = {
myFlake.nixos.hardware.components.cpu.intel.enable = lib.mkEnableOption "Whether to enable Intel CPU.";
};
config = lib.mkIf cfg.enable {
boot.kernelModules = ["kvm-intel"];
2023-12-09 08:09:25 +00:00
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = "x86_64-linux";
};
}