11.stylix/modules/gedit/hm.nix
2023-01-30 22:56:57 +01:00

18 lines
390 B
Nix

{ pkgs, config, lib, ... }:
let
style = config.lib.stylix.colors {
template = builtins.readFile ./template.mustache;
extension = "xml";
};
in {
options.stylix.targets.gedit.enable =
config.lib.stylix.mkEnableTarget "GEdit" true;
config = lib.mkIf config.stylix.targets.gedit.enable {
xdg.dataFile = {
"gedit/styles/stylix.xml".source = style;
};
};
}