batman nix

This commit is contained in:
Kulvir Singh
2025-01-05 03:15:23 +05:30
parent 149fd7ac90
commit c5cb34ac1c
88 changed files with 838 additions and 1946 deletions

38
home-modules/git.nix Normal file
View File

@@ -0,0 +1,38 @@
{
lib,
username,
email,
...
}: {
programs.git = {
enable = true;
userName = "${username}";
userEmail = "${email}";
aliases = {
cm = "commit -m";
amend = "commit --amend";
};
ignores = [
".DS_Store"
".env"
];
# includes = [
# {
# path = "~/corpo/.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;
};
};
}