-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathgit.nix
More file actions
42 lines (36 loc) · 1.08 KB
/
Copy pathgit.nix
File metadata and controls
42 lines (36 loc) · 1.08 KB
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
35
36
37
38
39
40
41
42
{ config, ... }:
{
# Git
# https://nix-community.github.io/home-manager/options.xhtml#opt-programs.git.enable
# Aliases config in ./configs/git-aliases.nix
programs.git.enable = true;
programs.git.settings = {
diff.colorMoved = "default";
pull.rebase = true;
push.autoSetupRemote = true;
user.email = config.home.user-info.email;
user.name = config.home.user-info.fullName;
};
programs.git.ignores = [
"*~"
".DS_Store"
];
# Enhanced diffs
programs.delta.enable = true;
programs.delta.enableGitIntegration = true;
# Lazygit
# https://github.com/jesseduffield/lazygit
# https://nix-community.github.io/home-manager/options.xhtml#opt-programs.lazygit.enable
programs.lazygit.enable = true;
programs.lazygit.settings = {
git.pagers = [
{ pager = "delta --paging=never"; }
];
};
# GitHub CLI
# https://nix-community.github.io/home-manager/options.xhtml#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";
}