-
-
Notifications
You must be signed in to change notification settings - Fork 18k
nixos/modules: remove with lib #446700
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
base: master
Are you sure you want to change the base?
nixos/modules: remove with lib #446700
Conversation
75e95c3 to
2c03ad4
Compare
27ef833 to
78f3f4c
Compare
78f3f4c to
94f5561
Compare
06ae956 to
4da1611
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5933 |
osbm
left a comment
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.
I couldnt review maubot and synapse modules because of the huge diff but rest seems extremely well done.
I just have 1 thing to point out but this seems very much ready.
Thank you so much for this this makes the codes very readable in my opinion
4da1611 to
db328d7
Compare
db328d7 to
bf4a1cc
Compare
f39cc3f to
01fc87f
Compare
01fc87f to
1a95c38
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/6008 |
|
Did you consider Its not super obvious but in the page @AndersonTorres links to in #208242 this is shown as the alternative in the tip. |
Yes, that is an option, but i really don't like it due to the fact that i can not determine if it's a builtin or if its coming from lib. But i did do it for "lib.types" in some places |
I think lib is preferred over builtins in nixpkgs, which should probably be enforced if true, but that seems like a separate issue. I don't really like the full path on each use myself, but imo minimizing the diff would be the nicest option. |
|
In theory Further, treating everything as lib avoids the bikeshedding :) |
|
Merge conflicted after #443046. Not closing, because the other PR was only about |
1a95c38 to
fefa026
Compare
fefa026 to
963b86f
Compare
|
I currently don't have much time and can not really do any major changes to my change-set. |
This PR tries to remove generic
withexpressions that make it hard to discern the source of a function (and for LSP's to notice mistakes).see also: #208242
All changes were made by hand with assistance from regex and lsp.
Some removed with expressions include:
with libwith typesThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.