dotfiles.nix/home/git.nix

26 lines
483 B
Nix

{ pkgs, lib, ... }:
{
# Git
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.git.enable
# Aliases config imported in flake.
programs.git.enable = true;
programs.git.extraConfig = {
core.editor = "kak";
diff.colorMoved = "default";
pull.rebase = true;
init.defaultBranch = "main";
};
programs.git.ignores = [
".DS_Store"
];
# Enhanced diffs
programs.git.delta.enable = true;
# Gitea CLI
home.packages = [ pkgs.tea ];
}