Linux kernel: Difference between revisions

(added linuxKernel.packages to configuration)
m (Fix typos in example code)
Line 73: Line 73:
The config attribute <code>boot.kernelParams</code> can be set to supply the Linux kernel with additional command line arguments at boot time. It can only be used for built-in modules.
The config attribute <code>boot.kernelParams</code> can be set to supply the Linux kernel with additional command line arguments at boot time. It can only be used for built-in modules.


<syntaxHighlight lang="nix">
<syntaxhighlight lang="nix">
{ pkgs, config, ... }:
{ ... }:
{
{
   boot.kernelParams = [  
   boot.kernelParams = [  
     // example settings
     # example settings
     "quiet"
     "quiet"
     "splash"
     "splash"
     usbcore.blinkenlights=1 // example kernel module parameter
     "usbcore.blinkenlights=1" # example kernel module parameter
   ];
   ];
}
}
</syntaxHighlight>
</syntaxhighlight>


=== Custom configuration ===
=== Custom configuration ===