Skip to content

Commit

Permalink
Merge pull request #253048 from Mic92/openrbg
Browse files Browse the repository at this point in the history
nixos/openrbg: set cpu model based on what microcode updates are enabled
  • Loading branch information
wegank authored Sep 7, 2023
2 parents dea04c1 + f6fa02c commit eb1c345
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nixos/modules/services/hardware/openrgb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ in {

motherboard = mkOption {
type = types.nullOr (types.enum [ "amd" "intel" ]);
default = null;
default = if config.hardware.cpu.intel.updateMicrocode then "intel"
else if config.hardware.cpu.amd.updateMicrocode then "amd"
else null;
defaultText = literalMD ''
if config.hardware.cpu.intel.updateMicrocode then "intel"
else if config.hardware.cpu.amd.updateMicrocode then "amd"
else null;
'';
description = lib.mdDoc "CPU family of motherboard. Allows for addition motherboard i2c support.";
};

Expand Down

0 comments on commit eb1c345

Please sign in to comment.