nixdots/system/hardware/cpu/intel.nix
2024-03-23 21:48:54 +01:00

10 lines
192 B
Nix

{ config, lib, ... }:
let
dev = config.myOptions.device;
in
{
config = lib.mkIf (builtins.elem dev.cpu.type [ "intel" "vm-intel" ]) {
hardware.cpu.intel.updateMicrocode = true;
};
}