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

{ config, pkgs, ... }:
{
# git
programs.git = {
enable = true;
userName = "Simon Cornet";
userEmail = "simon@simoncor.net";
aliases = {
# 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";
};
};
};
}