This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/git/git.nix

40 lines
745 B
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, pkgs, ... }:
{
# git
programs.git = {
2024-04-03 23:26:46 +02:00
enable = true;
userName = "Simon Cornet";
2024-03-24 16:15:15 +01:00
userEmail = "simon@simoncor.net";
2024-04-03 23:26:46 +02:00
aliases = {
2024-03-24 16:15:15 +01:00
# commit + message
cam = "commit -am";
};
extraConfig = {
# generic
advice.addIgnoredFile = false;
init.defaultBranch = "master";
push.default = "matching";
web.browser = "firefox";
# core config
core = {
editor = "vim";
filemode = true;
packedGitLimit = "512m";
packedGitWindowSize = "512m";
compression = 0;
};
# credential cache
credential = {
helper = "cache --timeout 172800";
};
};
};
}