aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/lazygit/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:02:19 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:02:19 +0530
commit5ea8c30b7b82d4c1e7164541892066b1f24f7d22 (patch)
treead9b994cc5415f63bae1f2342f520756d43c67ce /modules/development/lazygit/default.nix
parentad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff)
parent748669e19daa3afc8f0cfe10eedc19ae9766ed2c (diff)
downloadhome-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.tar.gz
home-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.zip
Merge branch 'massive-refactoring'
Diffstat (limited to 'modules/development/lazygit/default.nix')
-rw-r--r--modules/development/lazygit/default.nix9
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";