Files
dotFiles/home-modules/git.nix
2025-01-07 00:37:09 +05:30

32 lines
498 B
Nix

{
lib,
username,
email,
...
}: {
programs.git = {
enable = true;
userName = "Kulvir Singh";
userEmail = "kulvirs734@gmail.com";
aliases = {
cm = "commit -m";
amend = "commit --amend";
};
ignores = [
".DS_Store"
".env"
];
lfs.enable = true; # make ptr to large files(audio/video) locally
extraConfig = {
init.defaultBranch = "trunk";
credential.helper = "cache";
push.autoSetupRemote = true;
};
};
}