-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.nix
38 lines (37 loc) · 885 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
{ pkgs, ...}:
{
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userEmail = "[email protected]";
userName = "Florent OLIVAUD";
aliases = {
capf = "!git commit -a --amend --no-edit && git push -f";
};
extraConfig = {
credential.helper = "libsecret";
commit.gpgsign = true;
merge."composer" = {
name = "composer JSON file merge driver";
driver = "~/.config/composer/vendor/bin/composer-git-merge-driver %O %A %B %L %P";
recursive = "binary";
};
pull = {
rebase = true;
};
push = {
default = "current";
};
status = {
submoduleSummary = true;
};
submodule = {
recurse = true;
};
core = {
editor = "vim";
};
};
includes = [ { path = "~/.gitconfig.local"; } ];
};
}