diff options
author | Thomas Watson <twatson52@icloud.com> | 2023-10-21 13:40:12 -0500 |
---|---|---|
committer | Thomas Watson <twatson52@icloud.com> | 2023-11-05 16:00:15 -0600 |
commit | be8065759e222f80085c99a14f630add97419f17 (patch) | |
tree | 82f28fcf32d85772268406f44eeafbbce1658020 | |
parent | 8dd45926ba6b74bc4f789fe8ba0eaaa251909dac (diff) | |
download | nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar.gz nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar.bz2 nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar.lz nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar.xz nixpkgs-be8065759e222f80085c99a14f630add97419f17.tar.zst nixpkgs-be8065759e222f80085c99a14f630add97419f17.zip |
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.
-rw-r--r-- | nixos/modules/system/boot/kernel.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/kernel.nix b/nixos/modules/system/boot/kernel.nix index 6b07686efcb..a46331ccd43 100644 --- a/nixos/modules/system/boot/kernel.nix +++ b/nixos/modules/system/boot/kernel.nix @@ -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) } ``` |