danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
902 stars 105 forks source link

emacs, home-manager: theme is unable to be set when using package made with `emacsWithPackagesFromUsePackage` #453

Open amadalusia opened 4 days ago

amadalusia commented 4 days ago

Issue?

The module provided by Stylix for Emacs is trying to override the extraConfig provided by my custom Emacs package. This however fails as the latter takes precedence over Stylix, resulting in an unthemed Emacs.

Is this fixable?

I am guessing you can try an override, however an override will probably not work out because it overrides that part of the package, instead of [app/prep]ending to it. Maybe adding prev will fix this?

Example?

This is what is happening to me right now, however it could happen to more people.