mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +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 = {
|
||||
enable = true;
|
||||
|
|
@ -11,7 +12,7 @@
|
|||
email = "antoine@lesviallon.fr";
|
||||
name = "Antoine Viallon";
|
||||
};
|
||||
core.compression = 3;
|
||||
core.compression = 6;
|
||||
commit.gpgSign = lib.mkDefault true;
|
||||
diff = {
|
||||
algorithm = "histogram";
|
||||
|
|
@ -22,7 +23,9 @@
|
|||
};
|
||||
fetch.prune = true;
|
||||
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";
|
||||
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