2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-09 22:36:06 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
|
|
|
|
2024-04-09 22:36:06 -07:00
|
|
|
cfg = config.programs.gitui.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.gitui.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.gitui.catppuccin = lib.ctp.mkCatppuccinOpt { name = "gitui"; };
|
2024-04-09 22:36:06 -07:00
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
|
|
|
programs.gitui.theme = builtins.path {
|
2024-05-21 17:23:55 -07:00
|
|
|
name = "${cfg.flavor}.ron";
|
2024-06-10 13:38:47 -07:00
|
|
|
path = "${sources.gitui}/themes/catppuccin-${cfg.flavor}.ron";
|
2024-04-09 22:36:06 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|