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