11.stylix/modules/gedit/default.nix
Daniel Thwaites ce781e1d96
Style GEdit
Fixes #17
2022-11-26 14:31:33 +00:00

20 lines
440 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 {
home-manager.sharedModules = [{
xdg.dataFile = {
"gedit/styles/stylix.xml".source = style;
};
}];
};
}