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
|
|
|
{
|
2023-06-16 13:23:35 +02:00
|
|
|
home.packages = with pkgs; [ tig ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
include.path = "~/.gituser";
|
|
|
|
commit.gpgsign = true;
|
|
|
|
|
|
|
|
core = {
|
|
|
|
editor = "nvim";
|
|
|
|
autocrlf = false;
|
|
|
|
quotePath = false;
|
|
|
|
};
|
|
|
|
|
2023-06-22 17:00:39 +02:00
|
|
|
web.browser = "librewolf";
|
2023-06-16 13:23:35 +02:00
|
|
|
push.default = "simple";
|
|
|
|
branch.autosetuprebase = "always";
|
|
|
|
init.defaultBranch = "master";
|
|
|
|
rerere.enabled = true;
|
|
|
|
color.ui = true;
|
|
|
|
|
|
|
|
alias = {
|
|
|
|
contrib = "shortlog -n -s";
|
|
|
|
remotes = "remote -v";
|
|
|
|
praise = "blame";
|
|
|
|
verify = "log --show-signature";
|
2023-05-16 23:09:05 +02:00
|
|
|
};
|
2023-06-16 13:23:35 +02:00
|
|
|
|
|
|
|
"color \"diff-highlight\"" = {
|
|
|
|
oldNormal = "red bold";
|
|
|
|
oldHighlight = "red bold";
|
|
|
|
newNormal = "green bold";
|
|
|
|
newHighlight = "green bold";
|
|
|
|
};
|
|
|
|
|
|
|
|
"color \"diff\"" = {
|
|
|
|
meta = "yellow";
|
|
|
|
frag = "magenta bold";
|
|
|
|
commit = "yellow bold";
|
|
|
|
old = "red bold";
|
|
|
|
new = "green bold";
|
|
|
|
whitespace = "red reverse";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-26 15:02:33 +02:00
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
diff-so-fancy = true;
|
|
|
|
hunk-header-style = "file line-number syntax";
|
|
|
|
hunk-header-decoration-style = "none";
|
|
|
|
};
|
|
|
|
};
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|