feat: add some options to git config

This commit is contained in:
gwg313 2024-01-05 21:59:04 -05:00
parent a07ad591ff
commit b23cb3ca30
Signed by: gwg313
GPG key ID: 60FF63B4826B7400

View file

@ -7,9 +7,15 @@
}: { }: {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Glen Goodwin"; userName = "gwg313";
userEmail = "glen.goodwin1992@gmail.com"; userEmail = "gwg313@pm.me";
extraConfig = { extraConfig = {
user = {
signingkey = "60FF63B4826B7400";
};
commit = {
gpgsign = true;
};
diff = { diff = {
algorithm = "patience"; algorithm = "patience";
compactionHeuristic = "true"; compactionHeuristic = "true";
@ -25,6 +31,9 @@
"mergetool \"nvimdiff4\"" = { "mergetool \"nvimdiff4\"" = {
cmd = "nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'"; cmd = "nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'";
}; };
mergetool = {
keepBackup = false;
};
init = { init = {
defaultBranch = "main"; defaultBranch = "main";
}; };
@ -40,6 +49,12 @@
interactive = { interactive = {
diffFilter = "delta --color-only"; diffFilter = "delta --color-only";
}; };
push = {
autoSetupRemote = true;
};
pull = {
rebase = false;
};
}; };
ignores = [ ignores = [
"__pycache__" "__pycache__"