-
Notifications
You must be signed in to change notification settings - Fork 34
/
git.nix
34 lines (28 loc) · 873 Bytes
/
git.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, ... }:
{
# Git
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.git.enable
# Aliases config in ./configs/git-aliases.nix
programs.git.enable = true;
programs.git.extraConfig = {
diff.colorMoved = "default";
pull.rebase = true;
push.autoSetupRemote = true;
};
programs.git.ignores = [
"*~"
".DS_Store"
];
programs.git.userEmail = config.home.user-info.email;
programs.git.userName = config.home.user-info.fullName;
# Enhanced diffs
# programs.git.delta.enable = true;
programs.git.difftastic.enable = true;
programs.git.difftastic.display = "inline";
# GitHub CLI
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.gh.enable
# Aliases config in ./gh-aliases.nix
programs.gh.enable = true;
programs.gh.settings.version = 1;
programs.gh.settings.git_protocol = "ssh";
}