This fixes the issue mentioned at https://github.com/danth/stylix/pull/1164#pullrequestreview-2789195255 Link: https://github.com/danth/stylix/pull/1165 Reviewed-by: awwpotato <awwpotato@voidq.com>
24 lines
645 B
Nix
24 lines
645 B
Nix
{ config, lib, ... }:
|
|
let
|
|
style = config.lib.stylix.colors {
|
|
template = ../gedit/template.xml.mustache;
|
|
extension = ".xml";
|
|
};
|
|
in
|
|
{
|
|
options.stylix.targets.gnome-text-editor.enable =
|
|
config.lib.stylix.mkEnableTarget "GNOME Text Editor" true;
|
|
|
|
overlay =
|
|
_: prev:
|
|
lib.optionalAttrs
|
|
(config.stylix.enable && config.stylix.targets.gnome-text-editor.enable)
|
|
{
|
|
gnome-text-editor = prev.gnome-text-editor.overrideAttrs (oldAttrs: {
|
|
postFixup = ''
|
|
${oldAttrs.postFixup or ""}
|
|
cp ${style} $out/share/gnome-text-editor/styles/stylix.xml
|
|
'';
|
|
});
|
|
};
|
|
}
|