-
Notifications
You must be signed in to change notification settings - Fork 81
modules: create an option to enable the overlay #467
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: development
Are you sure you want to change the base?
Conversation
|
Does the overlay actually cause any issues for you? It should be additive only. |
|
Didn't even rebuild with the upstream module. I only used it after I made the fork to create the option to make this pull request. So I am not sure it will ever cause any issues. But it's better if modules don't do anything if they are just imported, and I guess it's an extra choice if someone wants to have it |
|
Well building with this will just break everyone, because all the other modules assume the packages to be there. |
|
The default of the |
|
I don't think we want to support this, honestly, unless you force-enable it in every single possible module that relies on the packages. |
|
Sure thing. I'll do that later today, then. Can you tell me where else it needs enabling in the meanwhile? Or, I'll just look at it later today |
|
Basically everywhere. You can go through the list and check for references to the packages added in the overlay. |
This way, nothing changes in the configuration if you add the module to it and do nothing else
f1a2f80 to
ce1c6b1
Compare
|
Here you go, I did it. My bad for not commenting earlier, I finished it but didn't have time to test it until now. |
|
Since you're using flake, another way to achieve this is by leveraging readOnlyPkgs and passing pkgs explicitly on your own control. |
|
True, but, again, it's good for modules to not do anything upon just importing them |
This way, nothing changes in the configuration if you add the module to it and do nothing else.
My usecase (1 2) is that I want a "Steam Deck UI" specialisation in my configuration, because the configuration is for a computer that I use for other things too, so I want to sometimes go into the Deck UI mode, accessible through an entry in my bootloader (basically how speicialisations work), and I don't want this module's overlay to apply globally, I only want it applying to the packages under the specific specialisation.
Plus AFAIK it's bad practice to do something upon just importing a module and not setting any options.