2024-04-07 02:15:18 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-07 02:15:18 -07:00
|
|
|
cfg = config.programs.git.delta.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.git.delta.enable;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.git.delta.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "catppuccin";
|
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
|
|
|
programs.git = {
|
|
|
|
includes = [
|
|
|
|
{
|
|
|
|
path = "${sources.delta}/catppuccin.gitconfig";
|
|
|
|
}
|
|
|
|
];
|
2024-04-29 11:28:30 -07:00
|
|
|
delta.options.features = "catppuccin-${cfg.flavour}";
|
2024-04-07 02:15:18 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|