dotfiles.nix/home/git.nix

26 lines
542 B
Nix
Raw Normal View History

2022-01-23 01:32:58 +00:00
{ 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 = {
2022-07-30 02:15:19 +00:00
# core.editor = "${pkgs.neovim-remote}/bin/nvr --remote-wait-silent -cc split";
2022-01-23 01:32:58 +00:00
diff.colorMoved = "default";
pull.rebase = true;
init.defaultBranch = "main";
2022-01-23 01:32:58 +00:00
};
programs.git.ignores = [
".DS_Store"
];
# Enhanced diffs
programs.git.delta.enable = true;
2022-07-05 00:20:31 +00:00
# Gitea CLI
2022-07-21 04:38:26 +00:00
home.packages = [ pkgs.tea ];
}