-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.nix
49 lines (43 loc) · 941 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ config, lib, pkgs, ... }:
{
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
userName = "Kevin Unkrich";
userEmail = "[email protected]";
# Replaces ~/.gitignore
ignores = [
".cache/"
".DS_Store"
".idea/"
"*.swp"
"built-in-stubs.jar"
"dumb.rdb"
".elixir_ls/"
".vscode/"
"npm-debug.log"
"shell.nix"
];
# Replaces aliases in ~/.gitconfig
aliases = {
br = "branch";
co = "checkout";
cob = "checkout -b";
ci = "commit";
cm = "commit -m";
cp = "commit -p";
d = "diff";
};
# Global Git config
extraConfig = {
core = {
editor = "nvim";
pager = "delta --dark";
whitespace = "trailing-space,space-before-tab";
};
protocol.keybase.allow = "always";
credential.helper = "osxkeychain";
pull.rebase = "false";
};
};
}