Linux kernel: Difference between revisions
→Custom kernel modules: Use better example that doesn't need an extra explanation |
added linuxKernel.packages to configuration |
||
Line 6: | Line 6: | ||
For example by adding this to <code>/etc/nixos/configuration.nix</code>: | For example by adding this to <code>/etc/nixos/configuration.nix</code>: | ||
< | <syntaxhighlight lang="nix"> | ||
boot.kernelPackages = pkgs.linuxPackages_latest; | boot.kernelPackages = pkgs.linuxKernel.packages.linuxPackages_latest; | ||
</ | </syntaxhighlight> | ||
And rebuild your system and reboot to use your new kernel: | And rebuild your system and reboot to use your new kernel: | ||
<syntaxHighlight lang="console"> | <syntaxHighlight lang="console"> |