-
-
Notifications
You must be signed in to change notification settings - Fork 230
gnome: use overlay.nix #1346
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
gnome: use overlay.nix #1346
Conversation
27e2f9d
to
c0fa59e
Compare
3dc1ccb
to
4bc2fbd
Compare
43f46e4
to
3776e47
Compare
oh no, having enable condition depend on pkgs is making the overlay inf recurse :( (or atleast I'm pretty sure that's whats happening) @MattSturgeon do you have any advice here? |
I don't see where an enable condition depends on |
modules/gnome/overlay.nix
Outdated
lib.mkIf | ||
( | ||
config.stylix.enable | ||
&& options.stylix.targets ? gnome |
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.
Q: is the gnome
target module sometimes missing?
Maybe this would benefit from an explanatory 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.
gnome
doesn't exist on darwin and droid
in |
Note that the overlay is only necessary on NixOS: GNOME Shell is not installed by Home Manager, so there is never a need for the overlay to be enabled there. Maybe that makes it easier to avoid the infinite recursion. |
Ah, so the issue is the enable option defaults to I'm not convinced that should be inf-rec, because both instances of Also, in hindsight, I'm not convinced my earlier feedback was needed. In theory, the I'd like to rule out the |
hmm I don't know how we would tell if the overlay is being used as part of NixOS or home-manager.
replacing
with the hm enable con set to |
Thanks for investigating! That's frustrating, as I'm sure you'll run into this again with other overlays being conditional on a While you can work-around the issue by only importing the overlay portion of the module on NixOS, you may not have that luxury in other cases. |
fixes #1324
Things done
Notify maintainers
@danth