diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index b5a7a4d..411a941 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -11,6 +11,7 @@ in ./bottom.nix ./btop.nix ./kitty.nix + ./lazygit.nix ./starship.nix ./helix.nix ./gtk.nix diff --git a/modules/home-manager/lazygit.nix b/modules/home-manager/lazygit.nix new file mode 100644 index 0000000..8ea6393 --- /dev/null +++ b/modules/home-manager/lazygit.nix @@ -0,0 +1,21 @@ +{ config, pkgs, lib, ... }: +let cfg = config.programs.lazygit.catppuccin; +in { + options.programs.lazygit.catppuccin = + lib.ctp.mkCatppuccinOpt "lazygit" config; + + config.programs.lazygit.settings = with builtins; + with lib; + with pkgs; + let + file = fetchFromGitHub + { + owner = "catppuccin"; + repo = "lazygit"; + rev = "f01edfd57fa2aa7cd69a92537a613bb3c91e65dd"; + sha256 = "sha256-zjzDtXcGtUon4QbrZnlAPzngEyH56yy8TCyFv0rIbOA="; + } + "/themes/${cfg.flavour}.yml"; + + in + mkIf cfg.enable (ctp.fromYaml pkgs file); +}