2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.programs.lazygit.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.lazygit.enable;
|
|
|
|
in
|
|
|
|
{
|
2023-06-19 08:14:19 -07:00
|
|
|
options.programs.lazygit.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "lazygit" config;
|
|
|
|
|
2023-07-13 09:17:51 -07:00
|
|
|
config.programs.lazygit.settings =
|
2023-06-19 08:14:19 -07:00
|
|
|
let
|
2023-07-13 09:17:51 -07:00
|
|
|
file =
|
|
|
|
pkgs.fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "lazygit";
|
|
|
|
rev = "f01edfd57fa2aa7cd69a92537a613bb3c91e65dd";
|
|
|
|
sha256 = "sha256-zjzDtXcGtUon4QbrZnlAPzngEyH56yy8TCyFv0rIbOA=";
|
|
|
|
}
|
|
|
|
+ "/themes/${cfg.flavour}.yml";
|
2023-06-19 08:14:19 -07:00
|
|
|
in
|
2023-07-13 09:17:51 -07:00
|
|
|
lib.mkIf enable (lib.ctp.fromYaml pkgs file);
|
2023-06-19 08:14:19 -07:00
|
|
|
}
|