forked from malob/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.nix
31 lines (24 loc) · 795 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
{ config, pkgs, ... }:
{
# 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 = {
core.editor = "${pkgs.neovim-remote}/bin/nvr --remote-wait-silent -cc split";
diff.colorMoved = "default";
pull.rebase = 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;
# 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.git_protocol = "ssh";
}