dotfiles.nix/home/git.nix

21 lines
466 B
Nix
Raw Normal View History

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;
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;
}