lol

doc: remove misleading kernel.features explanation

At this point kernel.features is more of an implementation detail and
normal users should not come into contact with it.

authored by

Julian Stecklina and committed by
Alyssa Ross
1b7e4347 35812652

-14
-14
doc/packages/linux.section.md
··· 12 12 13 13 The kernel derivation created with `pkgs.buildLinux` exports an attribute `features` specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. 14 14 15 - :::{.example #ex-skip-package-from-kernel-feature} 16 - 17 - # Skipping an external package because of a kernel feature 18 - 19 - For instance, if the kernel has the `iwlwifi` feature (i.e., has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external `iwlwifi` package: 20 - 21 - ```nix 22 - modulesTree = [kernel] 23 - ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi 24 - ++ ...; 25 - ``` 26 - 27 - ::: 28 - 29 15 If you are using a kernel packaged in Nixpkgs, you can customize it by overriding its arguments. For details on how each argument affects the generated kernel, refer to [the `pkgs.buildLinux` source code](https://github.com/NixOS/nixpkgs/blob/d77bda728d5041c1294a68fb25c79e2d161f62b9/pkgs/os-specific/linux/kernel/generic.nix). 30 16 31 17 :::{.example #ex-overriding-kernel-derivation}