Merge pull request #253048 from Mic92/openrbg

nixos/openrbg: set cpu model based on what microcode updates are enabled

Changed files
+8 -1
nixos
modules
services
hardware
+8 -1
nixos/modules/services/hardware/openrgb.nix
···
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.";
};