nixdots/system/hardware/cpu/amd.nix

10 lines
186 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 [ "amd" "vm-amd" ]) {
hardware.cpu.amd.updateMicrocode = true;
};
}