[Programs] Add htop and git specific configurations

This commit is contained in:
Antoine Viallon 2022-01-22 20:44:39 +01:00
parent 00ed308594
commit 0f12a98583
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
3 changed files with 76 additions and 0 deletions

28
programs/git.nix Normal file
View file

@ -0,0 +1,28 @@
{config, pkgs, lib, ...}:
{
programs.git = {
enable = true;
lfs.enable = true;
config = {
init = {
defaultBranch = "main";
};
user = {
email = "antoine@lesviallon.fr";
name = "Antoine Viallon";
};
core.compression = 3;
commit.gpgSign = lib.mkDefault true;
diff = {
algorithm = "histogram";
};
feature = {
manyFiles = true;
};
fetch.prune = true;
fetch.negotiationAlgorithm = "skipping";
fetch.parallel = 6;
gpg.program = "${pkgs.gnupg}/bin/gpg";
};
};
}