Closes: https://github.com/danth/stylix/issues/865 Link: https://github.com/danth/stylix/pull/1088 Tested-by: https://github.com/PedroHLC Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
24 lines
644 B
Nix
24 lines
644 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
|
|
'';
|
|
});
|
|
};
|
|
}
|