2023-10-26 02:37:42 +00:00
|
|
|
{ flake, ... }:
|
2023-11-03 04:12:17 +00:00
|
|
|
let inherit (flake.config.users) me';
|
2023-10-26 02:37:42 +00:00
|
|
|
in {
|
2023-11-03 04:12:17 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 04:12:17 +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
|
|
|
|
2023-11-03 04:12:17 +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
|
|
|
}
|