mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
openrbg: set default based on what microcode updates are enabled
nixos-generate-config sets either of these, so lets use them
This commit is contained in:
parent
d816b5ab44
commit
f6fa02c984
1 changed files with 8 additions and 1 deletions
|
@ -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.";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue