1
0

feat: configure git correctly

This commit is contained in:
2025-12-19 16:05:43 +01:00
parent 747db1cc8c
commit 5439235834

View File

@@ -86,9 +86,6 @@ in
programs.git = {
enable = true;
userName = "Anton";
userEmail = "aligator.h0spital.e@gmail.com";
signing =
if (env.git or { }) ? signingKey then
{
@@ -99,10 +96,34 @@ in
{ signByDefault = false; };
extraConfig = {
user.name = "Anton";
user.email = "aligator.h0spital.e@gmail.com";
color = {
status = "always";
branch = "always";
diff = "always";
interactive = "always";
};
init.defaultBranch = "main";
push.autoSetupRemote = true;
"url \"https://github.com/\"".insteadOf = "gh:";
"filter \"lfs\"" = {
clean = "git-lfs clean -- %f";
smudge = "git-lfs smudge -- %f";
process = "git-lfs filter-process";
required = true;
};
"url \"ssh://git@github.com/\"".insteadOf = "gh:";
"url \"ssh://git@github.com/antonw51\"".insteadOf = "gh:me";
"url \"ssh://git@ip.louiscreates.com/\"".insteadOf = "tea:";
"url \"ssh://git@ip.louiscreates.com/antonw51\"".insteadOf = "tea:me";
alias.ref = "show -s --pretty = reference";
};
};