Merge pull request #262595 from tpwrules/fix-extra-config-documentation

nixos/kernel: correct kernelPatches.extraConfig documentation

authored by Samuel Dionne-Riel and committed by GitHub 3d88cc85 b04b7d64

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