2023-06-22 17:00:39 +02:00
|
|
|
{ pkgs, ... }:
|
2023-06-11 15:51:26 +02:00
|
|
|
|
2023-06-22 16:42:23 +02:00
|
|
|
{
|
2024-08-07 22:32:53 +02:00
|
|
|
home.packages = with pkgs; [
|
2024-08-03 20:22:47 +02:00
|
|
|
tig
|
|
|
|
mgitstatus
|
|
|
|
];
|
2023-06-16 13:23:35 +02:00
|
|
|
|
|
|
|
xdg.configFile."tig/config".text = ''
|
|
|
|
color cursor black green bold
|
|
|
|
color title-focus black blue bold
|
|
|
|
color title-blur black blue bold
|
|
|
|
'';
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-08-03 20:22:47 +02:00
|
|
|
attributes = [ "*.lockb binary diff=lockb" ];
|
2024-04-11 18:05:15 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
extraConfig = {
|
|
|
|
include.path = "~/.gituser";
|
|
|
|
commit.gpgsign = true;
|
|
|
|
|
2024-04-11 18:05:15 +02:00
|
|
|
diff.lockb = {
|
|
|
|
textconv = "bun";
|
|
|
|
binary = true;
|
|
|
|
};
|
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
core = {
|
|
|
|
editor = "nvim";
|
|
|
|
autocrlf = false;
|
|
|
|
quotePath = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
push.default = "simple";
|
2023-10-11 00:18:02 +02:00
|
|
|
pull.rebase = true;
|
2024-08-09 04:46:44 +02:00
|
|
|
fetch.prune = true;
|
2023-06-16 13:23:35 +02:00
|
|
|
branch.autosetuprebase = "always";
|
|
|
|
init.defaultBranch = "master";
|
|
|
|
rerere.enabled = true;
|
|
|
|
color.ui = true;
|
|
|
|
|
2024-04-05 01:42:03 +02:00
|
|
|
blame = {
|
|
|
|
date = "relative";
|
|
|
|
};
|
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
"color \"diff-highlight\"" = {
|
|
|
|
oldNormal = "red bold";
|
2023-06-28 15:14:03 +02:00
|
|
|
oldHighlight = "red bold";
|
2023-06-16 13:23:35 +02:00
|
|
|
newNormal = "green bold";
|
2023-06-28 14:57:41 +02:00
|
|
|
newHighlight = "green bold ul";
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"color \"diff\"" = {
|
|
|
|
meta = "yellow";
|
|
|
|
frag = "magenta bold";
|
|
|
|
commit = "yellow bold";
|
|
|
|
old = "red bold";
|
|
|
|
new = "green bold";
|
|
|
|
whitespace = "red reverse";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-26 22:18:51 +02:00
|
|
|
diff-so-fancy.enable = true;
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|