Linux kernel: Difference between revisions

imported>Mth
Merge content from Choose your kernel on NixOS to here.
imported>Mth
mNo edit summary
Line 5: Line 5:
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">
<syntaxHighlight lang="nix">
  boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.linuxPackages_latest;
</syntaxHighlight>
</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">
  $ sudo nixos-rebuild boot
$ sudo nixos-rebuild boot
  $ sudo reboot
$ sudo reboot
</syntaxHighlight>
</syntaxHighlight>