nixdots/system/hardware/cpu/amd.nix

10 lines
162 B
Nix

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