mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Programs/Git] Improve performance
This commit is contained in:
parent
d994b0138c
commit
903c5ecf86
1 changed files with 6 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
{config, pkgs, lib, ...}:
|
{config, pkgs, lib, myLib, ...}:
|
||||||
|
with lib;
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -11,7 +12,7 @@
|
||||||
email = "antoine@lesviallon.fr";
|
email = "antoine@lesviallon.fr";
|
||||||
name = "Antoine Viallon";
|
name = "Antoine Viallon";
|
||||||
};
|
};
|
||||||
core.compression = 3;
|
core.compression = 6;
|
||||||
commit.gpgSign = lib.mkDefault true;
|
commit.gpgSign = lib.mkDefault true;
|
||||||
diff = {
|
diff = {
|
||||||
algorithm = "histogram";
|
algorithm = "histogram";
|
||||||
|
|
@ -22,7 +23,9 @@
|
||||||
};
|
};
|
||||||
fetch.prune = true;
|
fetch.prune = true;
|
||||||
fetch.negotiationAlgorithm = "skipping";
|
fetch.negotiationAlgorithm = "skipping";
|
||||||
fetch.parallel = config.aviallon.general.cores;
|
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 = "${pkgs.gnupg}/bin/gpg";
|
||||||
format.pretty = "format:%C(yellow)%H (%t)%Creset %Cblue%aN (%cN)%Creset%Cred% G?%Creset - %Cgreen%ar%Creset %d %n %s%n";
|
format.pretty = "format:%C(yellow)%H (%t)%Creset %Cblue%aN (%cN)%Creset%Cred% G?%Creset - %Cgreen%ar%Creset %d %n %s%n";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue