home/git: misc added settings

This commit is contained in:
Oystein Kristoffer Tveit 2025-04-28 08:57:55 +02:00
parent 1f43c4a4ba
commit 479434f156
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

@ -116,7 +116,12 @@ in
extraConfig = {
core = {
whitespace = "space-before-tab,-indent-with-non-tab,trailing-space";
whitespace = lib.concatStringsSep "," [
"space-before-tab"
"-indent-with-non-tab"
"trailing-space"
"blank-at-eof"
];
untrackedCache = true;
editor = "nvim";
};
@ -181,6 +186,7 @@ in
diff = {
mnemonicPrefix = true;
renames = true;
compactionHeuristic = true;
tool = "nvimdiff";
submodule = "log";
};
@ -223,6 +229,21 @@ in
"url \"${lib.head github-uri-prefixes}\"".insteadOf = lib.tail github-uri-prefixes;
"url \"git@gist.github.com:\"".insteadOf = [
"git://gist.github.com/"
"https://gist.github.com/"
];
"url \"aur@aur.archlinux.org:\"".insteadOf = [
"aur:"
"https://aur.archlinux.org/"
];
gc = {
reflogExpire = "90 days";
reflogExpireUnreachable = "90 days";
};
web.browser = "google-chrome-stable";
"filter \"lfs\"" = {