mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Merge pull request #267583 from NixOS/backport-262595-to-release-23.05
[Backport release-23.05] nixos/kernel: correct kernelPatches.extraConfig documentation
This commit is contained in:
@@ -96,8 +96,8 @@ in
|
||||
# (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)
|
||||
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
|
||||
|
||||
@@ -105,8 +105,9 @@ in
|
||||
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)
|
||||
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)
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user