stylix/modules/gedit/hm.nix
Daniel Thwaites d14076e46f
Update flake inputs ⬆️
2023-07-14 12:50:08 +01:00

18 lines
372 B
Nix

{ pkgs, config, lib, ... }:
let
style = config.lib.stylix.colors {
template = ./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;
};
};
}