feat: move git to module

This commit is contained in:
2024-04-16 12:39:20 +08:00
parent 1b546b236b
commit dc4f1537d8
4 changed files with 57 additions and 19 deletions

27
modules/git.nix Normal file
View File

@@ -0,0 +1,27 @@
{
programs.git = {
enable = true;
userEmail = "yadunand@yadunut.com";
userName = "Yadunand Prem";
delta.enable = true;
lfs.enable = true;
extraConfig = {
init.defautBranch = "main";
pull.rebase = true;
pull.autostash = true;
rebase.autostash = true;
core.excludefile = "~/.gitignore_global";
push.autoSetupRemote = true;
commit.gpgsign = true;
commit.verbose = true;
gpg.format = "ssh";
};
};
}