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>
19 lines
397 B
Nix
19 lines
397 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
style = config.lib.stylix.colors {
|
|
template = ./template.xml.mustache;
|
|
extension = ".xml";
|
|
};
|
|
|
|
in
|
|
{
|
|
options.stylix.targets.gedit.enable =
|
|
config.lib.stylix.mkEnableTarget "GEdit" true;
|
|
|
|
config = lib.mkIf (config.stylix.enable && config.stylix.targets.gedit.enable) {
|
|
xdg.dataFile = {
|
|
"gedit/styles/stylix.xml".source = style;
|
|
};
|
|
};
|
|
}
|