Talk:Linux kernel: Difference between revisions

From NixOS Wiki
Latest comment: 24 January 2023 by FranciscoKurpiel in topic Build kernel from source and use it
imported>Pingiun
Created page with " == Warning for the section about disabling mitigations? == I think that showing users how to disable security features should come with some warning. Users that are not famil..."
 
 
(5 intermediate revisions by 4 users not shown)
Line 3: Line 3:
I think that showing users how to disable security features should come with some warning. Users that are not familiar with these mitigations might copy and paste this configuration without considering the security implications. Also I don't think it's a good idea to have the configuration take the command line from the web page, as the web page might change.
I think that showing users how to disable security features should come with some warning. Users that are not familiar with these mitigations might copy and paste this configuration without considering the security implications. Also I don't think it's a good idea to have the configuration take the command line from the web page, as the web page might change.
--[[User:Pingiun|Pingiun]] ([[User talk:Pingiun|talk]]) 16:16, 26 August 2019 (UTC)
--[[User:Pingiun|Pingiun]] ([[User talk:Pingiun|talk]]) 16:16, 26 August 2019 (UTC)
:Good call, just removed it, while still leaving the useful parts of the section.
:--[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 16:21, 26 August 2019 (UTC)
== Custom Extra Settings ==
They are not working without Overrides.
As in :
extraConfigOverrides
== Why is the default kernel (just `linux`) not the latest? ==
Why does the default kernel is just `linux`, and why is it old?
It's currently 5.4 on both 20.03 and unstable. I'd expect it to be updated in unstable at least.
It looks like it's the LTS version of the kernel?
:As you found out by your last sentence, the default Linux package set is set to the latest LTS released at the time the next stable version of NixOS is forked off. This is important because the latest non-LTS version of Linux may be EOL'd before our next release happens! As this is a stable branch, we don't want to rudely upgrade such a critical package from under the user's feet.
:
:--[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 01:14, 9 August 2020 (UTC)
== Build kernel from source and use it ==
I'm working on the linux kernel, so I need to build a kernel from kernel.org with my changes and run it. I have no clue about how to do this on NixOS. I come from  Arch Linux, and their documentation for what I want to do is here: https://wiki.archlinux.org/title/Kernel/Traditional_compilation. It would be awesome if the this page included instructions like that for NixOS.
--[[User:FranciscoKurpiel|FranciscoKurpiel]] ([[User talk:FranciscoKurpiel|talk]]) 23:11, 24 January 2023 (UTC)
== specify pkgs.linuxKernel.packages.* instead of what's currently there ==
The reader, from what I can tell, does not know to add pkgs.linuxKernel to the kernel option.

Latest revision as of 01:58, 2 April 2024

Warning for the section about disabling mitigations?

I think that showing users how to disable security features should come with some warning. Users that are not familiar with these mitigations might copy and paste this configuration without considering the security implications. Also I don't think it's a good idea to have the configuration take the command line from the web page, as the web page might change. --Pingiun (talk) 16:16, 26 August 2019 (UTC)Reply

Good call, just removed it, while still leaving the useful parts of the section.
--samueldr (talk) 16:21, 26 August 2019 (UTC)Reply

Custom Extra Settings

They are not working without Overrides.

As in :

extraConfigOverrides

Why is the default kernel (just `linux`) not the latest?

Why does the default kernel is just `linux`, and why is it old? It's currently 5.4 on both 20.03 and unstable. I'd expect it to be updated in unstable at least.

It looks like it's the LTS version of the kernel?

As you found out by your last sentence, the default Linux package set is set to the latest LTS released at the time the next stable version of NixOS is forked off. This is important because the latest non-LTS version of Linux may be EOL'd before our next release happens! As this is a stable branch, we don't want to rudely upgrade such a critical package from under the user's feet.
--samueldr (talk) 01:14, 9 August 2020 (UTC)Reply

Build kernel from source and use it

I'm working on the linux kernel, so I need to build a kernel from kernel.org with my changes and run it. I have no clue about how to do this on NixOS. I come from Arch Linux, and their documentation for what I want to do is here: https://wiki.archlinux.org/title/Kernel/Traditional_compilation. It would be awesome if the this page included instructions like that for NixOS.

--FranciscoKurpiel (talk) 23:11, 24 January 2023 (UTC)Reply

specify pkgs.linuxKernel.packages.* instead of what's currently there

The reader, from what I can tell, does not know to add pkgs.linuxKernel to the kernel option.