modules/nvidia: Clean and fix NVIDIA module parameters example (#554389)

This commit is contained in:
Sandro
2026-08-27 13:22:11 +00:00
committed by GitHub

View File

@@ -386,14 +386,12 @@ in
moduleParams = lib.mkOption {
type = lib.types.attrsOf (lib.types.attrsOf lib.types.raw);
default = { };
example = ''
{
nvidia = {
NVreg_UsePageAttributeTable = 1;
NVreg_RegistryDwords = "EnableBrightnessControl=1"
};
}
'';
example = {
nvidia = {
NVreg_UsePageAttributeTable = 1;
NVreg_RegistryDwords = "EnableBrightnessControl=1";
};
};
description = "Additional parameters to pass to the NVIDIA kernel module.";
};
};