summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-01-11 10:18:28 +0300
committerK900 <me@0upti.me>2023-01-11 10:18:28 +0300
commitb2a819f15f3165c08b5902692cfdd058a7e019b3 (patch)
tree40d92b041d0a5dfc2fe44da099983ad6b3e83303 /nixos
parent7148e613d5a3e36f0a5bd0a7d564cac33724de74 (diff)
downloadnixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar.gz
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar.bz2
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar.lz
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar.xz
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.tar.zst
nixpkgs-b2a819f15f3165c08b5902692cfdd058a7e019b3.zip
nixos/kernel: fix docs typo
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/kernel.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/kernel.nix b/nixos/modules/system/boot/kernel.nix
index 272f1b95fe6..8f203b2c8b3 100644
--- a/nixos/modules/system/boot/kernel.nix
+++ b/nixos/modules/system/boot/kernel.nix
@@ -78,7 +78,7 @@ in
           {
             name = "foo";
             patch = ./foo.patch;
-            structuredExtraConfig.FOO = lib.kernel.yes;
+            extraStructuredConfig.FOO = lib.kernel.yes;
             features.foo = true;
           }
         ]
@@ -96,16 +96,17 @@ in
                                         # (required, but can be null if only config changes
                                         # are needed)
 
-          structuredExtraConfig = {     # attrset of extra configuration parameters
+          extraStructuredConfig = {     # attrset of extra configuration parameters
             FOO = lib.kernel.yes;       # (without the CONFIG_ prefix, optional)
-          };                            # values should generally be lib.kernel.yes or lib.kernel.no
+          };                            # values should generally be lib.kernel.yes,
+                                        # lib.kernel.no or lib.kernel.module
 
           features = {                  # attrset of extra "features" the kernel is considered to have
             foo = true;                 # (may be checked by other NixOS modules, optional)
           };
 
           extraConfig = "CONFIG_FOO y"; # extra configuration options in string form
-                                        # (deprecated, use structuredExtraConfig instead, optional)
+                                        # (deprecated, use extraStructuredConfig instead, optional)
         }
         ```