2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
2023-11-02 10:55:47 -07:00
|
|
|
, sources
|
2023-07-13 09:17:51 -07:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2023-11-02 10:55:47 -07:00
|
|
|
inherit (lib) ctp;
|
2023-07-13 09:17:51 -07:00
|
|
|
cfg = config.programs.lazygit.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.lazygit.enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
|
|
|
|
themePath = "/${cfg.flavour}/${cfg.accent}.yml";
|
2023-07-13 09:17:51 -07:00
|
|
|
in
|
|
|
|
{
|
2023-06-19 08:14:19 -07:00
|
|
|
options.programs.lazygit.catppuccin =
|
2023-11-02 10:55:47 -07:00
|
|
|
lib.ctp.mkCatppuccinOpt "lazygit" // {
|
|
|
|
accent = ctp.mkAccentOpt "lazygit";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
2023-06-19 08:14:19 -07:00
|
|
|
|
2023-11-02 10:55:47 -07:00
|
|
|
programs.lazygit.settings = lib.ctp.fromYaml "${sources.lazygit}/themes/${themePath}";
|
|
|
|
};
|
2023-06-19 08:14:19 -07:00
|
|
|
}
|