-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add argument for default host attributes #19
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.
Perfect & clean solution!
Please feel entitled to merge, if it's ready.
@gytis-ivaskevicius we where wondering if you wanted to preserve We can see how usage plays out and make that call whonce we get there. |
I'd like to preserve Related: divnix/digga#232 (comment) |
This reverts commit faa7855, reversing changes made to 8a593ca. ``` evalHostArgs = { channelName ? "nixpkgs" , modules ? [] , system ? defaultSystem , extraArgs ? {} , ... }: defaultHostAttrs // { inherit channelName system; modules = sharedModules ++ modules; extraArgs = sharedExtraArgs // extraArgs; }; ``` does not as intended. - channelName would be "nixpkgs" even if a default is set.
This reverts commit fe983e5.
This reverts commit fe983e5.
Generic argument to add defaults to all hosts. This could cover modules, extraArgs, system, and channelName. I would say keep some things, ex
sharedModules
, just for convenience and backwards-compatibility, but this is overall useful to prevent making the api surface too large. Whenever adding things to hosts, you no longer need to make a relevant default argument, users can just usedefaultHostAttrs
.Example: