2023-10-26 02:37:42 +00:00
|
|
|
{ flake, ... }:
|
2024-07-18 14:16:04 +00:00
|
|
|
let
|
2024-07-20 00:59:11 +00:00
|
|
|
inherit (flake.config) me;
|
2024-07-18 14:16:04 +00:00
|
|
|
in
|
|
|
|
{
|
2023-11-03 04:12:17 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2024-07-20 00:59:11 +00:00
|
|
|
userEmail = me.email;
|
|
|
|
userName = me.name;
|
2022-09-15 21:17:21 +00:00
|
|
|
|
2023-11-03 04:12:17 +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
|
|
|
|
2023-11-03 04:12:17 +00:00
|
|
|
# enhanced diffs
|
2023-11-03 23:18:54 +00:00
|
|
|
# TODO: fix light colorscheme
|
2023-11-03 04:12:17 +00:00
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
navigate = true;
|
|
|
|
line-numbers = true;
|
|
|
|
side-by-side = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-01-23 23:50:34 +00:00
|
|
|
}
|