nixos/kernel: correct kernelPatches.extraConfig documentation

It hasn't expected the prefix for a long time (possibly ever). Other
documentation and patches within nixpkgs itself (such as the crashdump
module) do not have the prefix.

Changed files
+5 -4
nixos
modules
system
boot
+5 -4
nixos/modules/system/boot/kernel.nix
···
# (required, but can be null if only config changes
# are needed)
-
extraStructuredConfig = { # attrset of extra configuration parameters
-
FOO = lib.kernel.yes; # (without the CONFIG_ prefix, optional)
}; # values should generally be lib.kernel.yes,
# lib.kernel.no or lib.kernel.module
···
foo = true; # (may be checked by other NixOS modules, optional)
};
-
extraConfig = "CONFIG_FOO y"; # extra configuration options in string form
-
# (deprecated, use extraStructuredConfig instead, optional)
}
```
···
# (required, but can be null if only config changes
# are needed)
+
extraStructuredConfig = { # attrset of extra configuration parameters without the CONFIG_ prefix
+
FOO = lib.kernel.yes; # (optional)
}; # values should generally be lib.kernel.yes,
# lib.kernel.no or lib.kernel.module
···
foo = true; # (may be checked by other NixOS modules, optional)
};
+
extraConfig = "FOO y"; # extra configuration options in string form without the CONFIG_ prefix
+
# (optional, multiple lines allowed to specify multiple options)
+
# (deprecated, use extraStructuredConfig instead)
}
```