From 13c071ddd6e5c914e48c5a6fa50395f575f7a33a Mon Sep 17 00:00:00 2001 From: nick <54501296+2hexed@users.noreply.github.com> Date: Wed, 19 Aug 2026 23:26:34 +0530 Subject: [PATCH] modules/nvidia: Clean and fix NVIDIA module parameters example Fixes a small issue where search.nixos.org shows a text block with `''`'s for the example snippet (which may confuse the user) and added a `;` to correct the example snippet's syntax. --- nixos/modules/hardware/video/nvidia.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index bd553409cff6b..248f45584e9b9 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -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."; }; };