feat: move git to module
This commit is contained in:
27
modules/git.nix
Normal file
27
modules/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user