2023-10-26 02:37:42 +00:00
|
|
|
{ flake, ... }:
|
|
|
|
let inherit (flake.config.people) me users;
|
|
|
|
in {
|
2022-01-23 01:32:58 +00:00
|
|
|
programs.git.enable = true;
|
|
|
|
|
2023-10-26 02:37:42 +00:00
|
|
|
programs.git.userEmail = users.${me}.email;
|
|
|
|
programs.git.userName = users.${me}.name;
|
2022-09-15 21:17:21 +00:00
|
|
|
|
2022-01-23 01:32:58 +00:00
|
|
|
programs.git.extraConfig = {
|
|
|
|
diff.colorMoved = "default";
|
|
|
|
pull.rebase = true;
|
2022-02-07 05:09:16 +00:00
|
|
|
init.defaultBranch = "main";
|
2022-12-20 02:45:46 +00:00
|
|
|
help.autocorrect = "prompt";
|
2022-01-23 01:32:58 +00:00
|
|
|
};
|
|
|
|
|
2023-10-26 02:37:42 +00:00
|
|
|
programs.git.ignores = [ ".DS_Store" ".direnv" "result" ];
|
2022-01-23 01:32:58 +00:00
|
|
|
|
|
|
|
# Enhanced diffs
|
|
|
|
programs.git.delta.enable = true;
|
2022-01-23 23:50:34 +00:00
|
|
|
}
|