aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-20 00:54:13 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-29 03:50:28 +0530
commit792e58b17b3b164bec7acc1430d64ab1c22b7bee (patch)
treeb842645689bd0f5179298f545836ea41f8434d9f /modules/development
parent5aef96dc4b99c622f56630eeab7acbdf0f92ce59 (diff)
downloadhome-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')
-rw-r--r--modules/development/delta/default.nix15
-rw-r--r--modules/development/git/default.nix49
-rw-r--r--modules/development/lazygit/default.nix6
3 files changed, 30 insertions, 40 deletions
diff --git a/modules/development/delta/default.nix b/modules/development/delta/default.nix
index b35e5a6..e3daeb3 100644
--- a/modules/development/delta/default.nix
+++ b/modules/development/delta/default.nix
@@ -26,20 +26,5 @@
line-numbers-right-format = "{np}│ ";
};
};
-
- programs.git.settings = lib.mkIf config.development.git.enable {
- core.pager = "delta";
- interactive.diffFilter = "delta --color-only";
- delta.navigate = true;
- };
-
- programs.lazygit.settings = lib.mkIf config.development.lazygit.enable {
- git.pagers = [
- {
- colorArg = "always";
- pager = "delta --paging=never {{diffArgs}}";
- }
- ];
- };
};
}
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;
+ })
+ ];
};
};
}
diff --git a/modules/development/lazygit/default.nix b/modules/development/lazygit/default.nix
index a39a8b6..ea21841 100644
--- a/modules/development/lazygit/default.nix
+++ b/modules/development/lazygit/default.nix
@@ -63,6 +63,12 @@
};
git = {
overrideGpg = true;
+ diffRenderers = [
+ {
+ colorArg = "always";
+ command = "delta --paging=never {{diffArgs}}";
+ }
+ ];
};
update.method = "never";
};