2024-04-09 22:36:06 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
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
|
|
|
|
{
|
|
|
|
options.programs.gitui.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "gitui";
|
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
|
|
|
programs.gitui.theme = builtins.path {
|
|
|
|
name = "${cfg.flavour}.ron";
|
|
|
|
path = "${sources.gitui}/theme/${cfg.flavour}.ron";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|