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

39 lines
626 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"
];
# includes = [
# {
# path = "./.gitconfig";
# condition = "gitdir:~/path/corpo/";
# }
# ];
lfs.enable = true; # make ptr to large files(audio/video) locally
extraConfig = {
init.defaultBranch = "trunk";
credential.helper = "cache";
push.autoSetupRemote = true;
};
};
}