11.stylix/modules/gedit/hm.nix
awwpotato 489833b201
treewide: give mustache files correct file extensions (#946)
makes the filetype of the file more clear and makes it possible for
editorconfig (#945) to work for these files
2025-03-02 23:48:43 +00:00

19 lines
396 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;
};
};
}