-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
NixOS/evalModules legacy cleanup #148315
NixOS/evalModules legacy cleanup #148315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup! I can confirm that this fixes specialisations
Fixes a mistake in NixOS#148315 that caused NixOS#148343 (comment)
@roberth @infinisil There is one location remaining in nixpkgs that sets these deprecated Lines 1073 to 1074 in 0ed4113
Could/should this be rewritten? |
@nh2 |
Motivation for this change
The supposedly legacy
args
flags was still used and was not passed along correctly. This PR fixes this at the module system level, at the NixOS level and in the documentation module. While only one of these would be sufficient to solve the issue, it is clear that we should get rid of the redundant code.First and foremost, address the issue raised in nixos/specialisation: Rephrase in terms of extendModules, noUserModules #144094 (comment).
Deprecate the legacy parameters that, combined with nixos/specialisation: Rephrase in terms of extendModules, noUserModules #144094, created the problem.
Simplify the documentation module and make it more complete and accurate.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes