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

10 lines
186 B
Nix

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