nixdots/system/hardware/cpu/intel.nix

10 lines
192 B
Nix
Raw Normal View History

2024-03-21 20:47:25 +00:00
{ config, lib, ... }:
let
dev = config.myOptions.device;
in
{
config = lib.mkIf (builtins.elem dev.cpu.type [ "intel" "vm-intel" ]) {
hardware.cpu.intel.updateMicrocode = true;
};
}