Linux kernel: Difference between revisions
m →Overriding kernel packages: Add documentation for kernelPackagesExtensions |
Remove stub troubleshooting section |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 241: | Line 241: | ||
Please provide a comparison with other distributions' kernel: | Please provide a comparison with other distributions' kernel: | ||
* Arch: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/main/config | |||
* Debian: https://salsa.debian.org/kernel-team/linux/blob/master/debian/config/config and the ARCH specific ones | |||
== Booting a kernel from a custom source == | == Booting a kernel from a custom source == | ||
| Line 474: | Line 475: | ||
=== Overriding kernel packages === | === Overriding kernel packages === | ||
In order to override <code>linuxPackages</code>, an alias of <code> | In order to override <code>linuxPackages</code>, an alias of <code>linuxKernel.packages</code>, use the <code>extend</code> attribute. Example: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
| Line 500: | Line 501: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
You can also use <code>kernelPackagesExtensions</code> in a similar fashion to override <code> | You can also use <code>kernelPackagesExtensions</code> in a similar fashion to override <code>linuxKernel.packages</code>: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
| Line 613: | Line 614: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||