dotfiles.nix/home/git.nix

40 lines
666 B
Nix
Raw Normal View History

2023-10-26 02:37:42 +00:00
{ flake, ... }:
2024-07-18 14:16:04 +00:00
let
inherit (flake.config.users) me';
in
{
programs.git = {
enable = true;
2022-01-23 01:32:58 +00:00
userEmail = me'.email;
userName = me'.name;
2022-09-15 21:17:21 +00:00
extraConfig = {
help.autocorrect = "prompt";
init.defaultBranch = "main";
pull.rebase = true;
# recommended by delta
diff.colorMoved = "default";
merge.conflictStyle = "diff3";
};
2022-01-23 01:32:58 +00:00
2024-07-18 14:16:04 +00:00
ignores = [
".DS_Store"
".direnv"
"result"
];
2022-01-23 01:32:58 +00:00
# enhanced diffs
2023-11-03 23:18:54 +00:00
# TODO: fix light colorscheme
delta = {
enable = true;
options = {
navigate = true;
line-numbers = true;
side-by-side = true;
};
};
};
}