From 792e58b17b3b164bec7acc1430d64ab1c22b7bee Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 20 Aug 2026 00:54:13 +0530 Subject: development: updated lazygit config, moved config options - lazygit config was updated with the latest release, made minor modificaitons to reflect those changes - instead of writing the configuraiton that sets delta as the default diff viewer in git and lazygit inside delta's config files, it is now done by git and lazygit --- modules/development/git/default.nix | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'modules/development/git') diff --git a/modules/development/git/default.nix b/modules/development/git/default.nix index e9580a0..beb88b2 100644 --- a/modules/development/git/default.nix +++ b/modules/development/git/default.nix @@ -45,37 +45,36 @@ }; config = lib.mkIf config.development.git.enable { - home.packages = with pkgs; [ - gawk - ]; - programs.git = { enable = true; signing = { key = config.development.git.signing.key; signByDefault = config.development.git.signing.signByDefault; }; - settings = - lib.recursiveUpdate - { - user = { - name = config.development.git.username; - email = config.development.git.email; - }; - core.askPass = ""; - log = { - showSignature = true; - }; - } - ( - lib.optionalAttrs config.development.git.useSSH { - url."git@github.com:".insteadOf = "https://github.com/"; - url."git@gitlab.com:".insteadOf = "https://gitlab.com/"; - url."git@bitbucket.org:".insteadOf = "https://bitbucket.org/"; - url."git@codeberg.org:".insteadOf = "https://codeberg.org/"; - url."git@git.sr.ht:".insteadOf = "https://git.sr.ht/"; - } - ); + settings = lib.mkMerge [ + { + user = { + name = config.development.git.username; + email = config.development.git.email; + }; + core.askPass = ""; + log.showSignature = true; + } + + (lib.optionalAttrs config.development.git.useSSH { + url."git@github.com:".insteadOf = "https://github.com/"; + url."git@gitlab.com:".insteadOf = "https://gitlab.com/"; + url."git@bitbucket.org:".insteadOf = "https://bitbucket.org/"; + url."git@codeberg.org:".insteadOf = "https://codeberg.org/"; + url."git@git.sr.ht:".insteadOf = "https://git.sr.ht/"; + }) + + (lib.optionalAttrs config.development.git.enable { + core.pager = "delta"; + interactive.diffFilter = "delta --color-only"; + delta.navigate = true; + }) + ]; }; }; } -- cgit v1.2.3