[RDY] kernel doc: explain how to configure custom kernel#29944
[RDY] kernel doc: explain how to configure custom kernel#29944dezgeg merged 1 commit intoNixOS:masterfrom
Conversation
1fab0f1 to
57b35b1
Compare
|
My intent is to document the current way of customizing kernels but I would rather improve the situation. @Ericson2314 I am very eager to ease kernel customization. My main question that remains unanswered (#2296): nixos generates first the config and then restarts the process (unpacking/patching) for the kernel compilation. Would it be ok to generate the config on the go instead ? Or does that break some workflow ? |
|
@teto I haven't really looked at it, but I'm rather found of the idea of configuring in a separate step. Configuring is rarely as deterministic as we want it to be, and this silos it off from the rest. That would especially be good in a future with the intensional store. But do feel free to improve before documenting :) |
|
I prepare a patch that makes kernel overrides easier (i.e., moves fields out of platform), yet I lose my way when it comes to override In nix-repl: |
|
@teto don't override |
|
@Ericson2314 I pushed an update that I hope to be ok. I dropped the references to hostPlaform overriding since there are not necessary anymore. I am not that familiar with docbook so I might have used wrong tags. |
There was a problem hiding this comment.
I would title this Building a customized kernel or something like that.
There was a problem hiding this comment.
is Customize your kernel ok ?
There was a problem hiding this comment.
<filename>pkgs/os-specific/linux/kernel/generic.nix</filename>
There was a problem hiding this comment.
There are various places missing spaces around the = in this example.
|
Seems good overall. I gave some minor comments. |
Presents the options available (linuxManualConfig versus overriding extraConfig, ignoreConfigErrors, autoModules, kernelPreferBuiltin. For advanced hostPlatform customization refer to the commands shared by ericson1234 at NixOS#33813 but it is too advanced to put in the doc.
|
i pushed an update that should address the comments. |
|
Does that seem ok :> ? |
|
Yes, looks good. Sorry this fell through the cracks. |
|
sure no problem. If I can get around to complete/merge #41393 I'll update the doc accordingly. |
Motivation for this change
compiling kernel is currently hard, hopefully it will improve overtime. (for instance:
)
Until then here is some doc.
Things done
build-use-sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)