[Programs/Git] don't add user.name in lib, tweak settings

In particular, enable pull.rebase and push.autoSetupRemote by default
This commit is contained in:
Antoine Viallon 2024-10-11 23:07:15 +02:00
parent 3decd64dfd
commit 955b57b3c8
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -8,10 +8,6 @@ with lib;
init = {
defaultBranch = "main";
};
user = {
email = "antoine@lesviallon.fr";
name = "Antoine Viallon";
};
core.compression = 6;
commit.gpgSign = lib.mkDefault true;
diff = {
@ -26,8 +22,10 @@ with lib;
fetch.parallel = config.aviallon.general.cpu.threads;
pack.threads = myLib.math.log2 config.aviallon.general.cpu.threads;
checkout.workers = config.aviallon.general.cpu.threads / 2;
gpg.program = "${pkgs.gnupg}/bin/gpg";
gpg.program = "${lib.getBin config.programs.gnupg.package}/bin/gpg";
format.pretty = "format:%C(yellow)%H (%t)%Creset %Cblue%aN (%cN)%Creset%Cred% G?%Creset - %Cgreen%ar%Creset %d %n %s%n";
push.autoSetupRemote = true;
pull.rebase = true;
};
};
}