dotfiles.nix/home/git.nix

21 lines
466 B
Nix

{ flake, ... }:
let inherit (flake.config.people) me users;
in {
programs.git.enable = true;
programs.git.userEmail = users.${me}.email;
programs.git.userName = users.${me}.name;
programs.git.extraConfig = {
diff.colorMoved = "default";
pull.rebase = true;
init.defaultBranch = "main";
help.autocorrect = "prompt";
};
programs.git.ignores = [ ".DS_Store" ".direnv" "result" ];
# Enhanced diffs
programs.git.delta.enable = true;
}