0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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

nixos/kernel: correct kernelPatches.extraConfig documentation
This commit is contained in:
Samuel Dionne-Riel 2023-11-14 22:40:04 -05:00 committed by GitHub
commit 3d88cc85dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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