flake/home/git.nix
2025-02-16 02:23:40 +03:00

37 lines
704 B
Nix

{pkgs, ...}: {
programs.git = {
enable = true;
userEmail = "osmanfbayram@gmail.com";
userName = "osbm";
signing.format = "ssh";
ignores = [
"*.pyc" # python
"*.swp" # vim
"__pycache__" # python
".DS_Store" # macOS
"result" # nix
"node_modules" # node
];
extraConfig = {
credential = {
helper = "store";
};
core = {
editor = "vim";
pager = "cat";
};
init = {
defaultBranch = "main";
};
http = {
postBuffer = 1048576000;
};
https = {
postBuffer = 1048576000;
};
push = {
autoSetupRemote = true;
};
};
};
}