diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 03:42:25 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 03:42:25 +0530 |
| commit | 30f8fea050f3242f0e6a2072779e706b5c8ceaf1 (patch) | |
| tree | a02b517bd112d4e91fab15166a4866bff252c2d3 /modules/development/lazygit/default.nix | |
| parent | ad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff) | |
| download | home-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.tar.gz home-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.zip | |
refactor(modules): introduce cfg local bindings and submodule option types
Diffstat (limited to 'modules/development/lazygit/default.nix')
| -rw-r--r-- | modules/development/lazygit/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/development/lazygit/default.nix b/modules/development/lazygit/default.nix index c2e6be8..95d2bf1 100644 --- a/modules/development/lazygit/default.nix +++ b/modules/development/lazygit/default.nix @@ -6,6 +6,7 @@ ... }: let + cfg = config.development.lazygit; base16Colors = import ../../colors/base16 { inherit config lib pkgs; }; in { @@ -22,7 +23,7 @@ in }; }; config = lib.mkMerge [ - (lib.mkIf config.development.lazygit.enable { + (lib.mkIf cfg.enable { programs.lazygit = { enable = true; enableBashIntegration = false; @@ -66,9 +67,9 @@ in commitHashLength = 4; showBranchCommitHash = true; showDivergenceFromBaseBranch = "arrowAndNumber"; - autoFetch = false; }; git = { + autoFetch = false; overrideGpg = config.security.gpg.enable; diffRenderers = lib.mkIf config.development.delta.enable [ { @@ -85,10 +86,10 @@ in source = ../../../assets/icons/apps/git.svg; }; }) - (lib.mkIf (config.development.lazygit.enable && config.terminal.kitty.enable) { + (lib.mkIf (cfg.enable && config.terminal.kitty.enable) { xdg.desktopEntries."lazygit" = { name = "lazygit"; - exec = "${lib.getExe config.terminal.kitty.package} --class lazygit -e ${lib.getExe config.development.lazygit.package}"; + exec = "${lib.getExe config.terminal.kitty.package} --class lazygit -e ${lib.getExe cfg.package}"; icon = "git"; categories = [ "Development" ]; comment = "A simple terminal UI for git commands"; |
