mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
37 lines
947 B
Nix
37 lines
947 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
myLib,
|
|
...
|
|
}:
|
|
with lib;
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
config = {
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
core.compression = 6;
|
|
commit.gpgSign = lib.mkDefault true;
|
|
diff = {
|
|
algorithm = "histogram";
|
|
renames = true;
|
|
};
|
|
feature = {
|
|
manyFiles = true;
|
|
};
|
|
fetch.prune = true;
|
|
fetch.negotiationAlgorithm = "skipping";
|
|
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 = "${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;
|
|
};
|
|
};
|
|
}
|