2024-08-25 23:02:35 +08:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2024-08-02 06:23:39 +08:00
|
|
|
programs.git = rec {
|
2023-11-29 18:18:56 +08:00
|
|
|
enable = true;
|
2024-08-02 06:23:39 +08:00
|
|
|
package = pkgs.gitFull; # overriding takes forever to compile
|
2024-04-03 01:11:21 +08:00
|
|
|
delta.enable = true;
|
|
|
|
|
2023-11-29 18:18:56 +08:00
|
|
|
userName = "Guanran Wang";
|
|
|
|
userEmail = "guanran928@outlook.com";
|
|
|
|
signing.signByDefault = true;
|
2024-04-03 01:11:21 +08:00
|
|
|
signing.key = "91F97D9ED12639CF";
|
|
|
|
|
2024-07-03 19:14:12 +08:00
|
|
|
extraConfig = {
|
2024-07-28 23:25:47 +08:00
|
|
|
init.defaultBranch = "master";
|
2024-07-03 19:14:12 +08:00
|
|
|
pull.rebase = true;
|
|
|
|
push.autoSetupRemote = true;
|
2024-08-02 06:23:39 +08:00
|
|
|
credential.helper = "${package}/bin/git-credential-libsecret";
|
2024-07-03 19:14:12 +08:00
|
|
|
};
|
2023-11-29 18:18:56 +08:00
|
|
|
};
|
2024-02-05 16:41:20 +08:00
|
|
|
|
2024-03-20 23:01:42 +08:00
|
|
|
programs.gh.enable = true;
|
2024-09-16 13:01:14 +08:00
|
|
|
|
2024-09-27 18:17:31 +08:00
|
|
|
programs.lazygit = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
gui = {
|
|
|
|
nerdFontsVersion = "3";
|
|
|
|
showRandomTip = false;
|
|
|
|
showBottomLine = false;
|
|
|
|
};
|
|
|
|
git = {
|
|
|
|
paging.pager = "delta --paging=never";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-29 18:18:56 +08:00
|
|
|
}
|