1
0
forked from extern/nix-config
donovanglover-nix-config/modules/git/default.nix
Donovan Glover 3119b789f8
nix: Format with alejandra
Alejandra is written in Rust, has more tests than nixfmt, and handles
non-trivial code examples in Nix better.
2023-06-05 20:50:10 -04:00

61 lines
1.4 KiB
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [tig git];
home-manager.sharedModules = [
{
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;
};
web.browser = "librewolf";
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";
};
"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";
};
};
diff-so-fancy.enable = true;
};
}
];
}