-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system.requiredKernelConfig: packages contraints #55755
Conversation
This lets packages define a meta.requiredKernelConfig to check for some specific kernel configurations. Right now this does it only for the booted kernel (hopefully the required config could be checked against an arbitrary kernel). The hope is to then add a knob that builds a configuration (thanks to kernel structured config) satisfying the constraints.
so I just wonder if the idea could make it into nixos (disabled by default as it's hard to automatically build a correct kernel config) ? then I can refine the implementation (which is a copy/paste hack right now). |
while trying to clean it, I found some flaws, the fix is non trivial else I will submit another proposal in a few weeks. |
This lets packages define
meta.requiredKernelConfig
that is added tosystem.requiredKernelConfig
when the package belongs toenvironment.systemPackages
.This checks if the package can work with the booted kernel.
(hopefully the check could be run against an arbitrary kernel).
The hope is to then add a knob that builds a kernel configuration satisfying the installed package constraints.
Motivation for this change
Long term goal is #41103. The intent with the PR is just to start with a smaller scope and concrete code. This is not the definite proposition but the main idea is visible and I hope to trigger some feedback.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)