-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
treewide: propagate inputs and remove templates #926
base: master
Are you sure you want to change the base?
Conversation
f9af7a5
to
60fe812
Compare
|
60fe812
to
77a312e
Compare
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'm fairly sure this will cause a conflict if the user already has their own inputs
in _module.args
(or specialArgs
). It's pretty common for people to do this.
I suggested an alternative implementation in #873 (comment): essentially, give each module a stylix.targets.*.template
option and set these options from flake.nix
, as we're now doing for some of the other flake inputs:
Lines 221 to 225 in c74352a
stylix = { | |
paletteGenerator = self.packages.${pkgs.system}.palette-generator; | |
base16 = base16.lib args; | |
homeManagerIntegration.module = self.homeManagerModules.stylix; | |
}; |
This still requires listing each template, however it's cleaner than passing inputs
through as a function argument.
crap, you're probably right
that would work, though it seems like it wouldn't scale as well as giving the modules access to inputs, and i still have hope for there being a clean way of doing it. if you have a strong enough preference, i'll go straight for the |
Alternatively, we could just use a different name under Or have just one readonly option containing all the inputs. I was also thinking with the |
of these two, the latter would probably be the most intuitive to contributors. i suppose that's what i'm leaning toward ATP
that could be nice, but would users be able to do anything other than override definitions of single colors? i think something like that would be better handled by #685 |
Agreed.
Agreed. |
77a312e
to
e4f4518
Compare
if making a read-only option, would also how are options being put under |
e4f4518
to
b645bd8
Compare
current solution makes read-ony option |
We're moving away from this to use defined read-only options instead. |
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.
We should mark the option as internal = true
since it's not meant to be used externally. This hides it from the public documentation.
fixes #238