2022-11-20 22:07:02 +00:00
|
|
|
{ config, pkgs, ... }:
|
2022-01-23 01:32:58 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Git
|
|
|
|
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.git.enable
|
|
|
|
# Aliases config imported in flake.
|
|
|
|
programs.git.enable = true;
|
|
|
|
|
2022-09-15 21:17:21 +00:00
|
|
|
programs.git.userEmail = config.home.primaryUser.email;
|
|
|
|
programs.git.userName = config.home.primaryUser.fullName;
|
|
|
|
|
2022-01-23 01:32:58 +00:00
|
|
|
programs.git.extraConfig = {
|
2022-10-16 23:43:04 +00:00
|
|
|
core.editor = "hx";
|
2022-01-23 01:32:58 +00:00
|
|
|
diff.colorMoved = "default";
|
|
|
|
pull.rebase = true;
|
2022-02-07 05:09:16 +00:00
|
|
|
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 ];
|
2022-01-23 23:50:34 +00:00
|
|
|
}
|