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
linux: mkDefault over the common config #106395
Conversation
Please target staging. |
Otherwise the default merging strategy favors enabling options, which can be detrimental in the hardened case for instance.
I rebased on staging sry for the notifications. This has the potential to break some custom kernel configs or change the behavior of the system (like IDIAG not being enabled anymore etc). So if you see this, adjust your kernel config to the new (better) behavior. |
dont merge yet it breaks boot :( |
The merging strategy should probably complain about conflicts, not favour enabling options, so that any conflicts have to be resolved explicitly (and IMHO the best way to do that would then be to sprinkle |
Ah sorry, just saw the PR mentioned at the beginning. So basically I agree with that approach :) |
At the very least we can test for something like this:
And we'll need |
@NeQuissimus I'd favour the approach in #90065, what do you think? |
@lheckemann That approach is a bit more targeted. We can prefer that, sure. |
I marked this as stale due to inactivity. → More info |
Otherwise the default merging strategy favors enabling options, which
can be detrimental in the hardened case for instance.
Partially addresses #90065
Before this PR
nix-build -A linux_hardened.configfile
has INET_DIAG enabled (it shouldn't) while with this PR it is indeed disabled.Ideally I would like to have tests for this, maybe with #69013
@wizeman interested in writing one ?
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)