cursor: does not respect xresources target on home-manager
I assert that this feature request is relevant for Stylix
- [x] I assert that this is not a duplicate of an existing feature request.
Description
When using the stylix.cursor option with home-manger, it sets home.pointerCursor.x11.enable = true, which tramples over the stylix.targets.xresources option if that is set to false. I suspect it may also do the same thing for gtk, but I'm not sure.
Notify maintainers
No response
When using the
stylix.cursoroption with home-manger, it setshome.pointerCursor.x11.enable = true
Yes:
https://github.com/nix-community/stylix/blob/8410296a30e62e06305020cb74d3247cfa45d9cc/stylix/hm/cursor.nix#L10-L26
which tramples over the
stylix.targets.xresourcesoption if that is set tofalse.
What do you mean by "tramples over"? Do you get a build error or incorrect run time behavior? Which of these declarations could be related to the problem:
- https://github.com/nix-community/stylix/blob/8410296a30e62e06305020cb74d3247cfa45d9cc/modules/xresources/hm.nix#L6-L43
At the moment, cursor theming is not part of any target and is globally either on or off. This doesn't match how we handle everything else. Ideally the existing cursor.nix would be broken down into configElements on each of the relevant targets