diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-20 00:54:13 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:28 +0530 |
| commit | 792e58b17b3b164bec7acc1430d64ab1c22b7bee (patch) | |
| tree | b842645689bd0f5179298f545836ea41f8434d9f /modules/development/git | |
| parent | 5aef96dc4b99c622f56630eeab7acbdf0f92ce59 (diff) | |
| download | home-manager-config-792e58b17b3b164bec7acc1430d64ab1c22b7bee.tar.gz home-manager-config-792e58b17b3b164bec7acc1430d64ab1c22b7bee.zip | |
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
Diffstat (limited to 'modules/development/git')
| -rw-r--r-- | modules/development/git/default.nix | 49 |
1 files changed, 24 insertions, 25 deletions
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; + }) + ]; }; }; } |
