moved hm to home/
This commit is contained in:
1 parent
c56f06bbfb
commit
afaacd003d
8 files changed
+127
-107
No files matched your search
@@ -0,0 +1,29 @@
|
||||
let
|
||||
gitconfigs =
|
||||
(builtins.filterSource (path: type: type != "directory") ./gitconfigs);
|
||||
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
|
||||
makeCommonGitConfigs =
|
||||
{ userName
|
||||
, userEmail
|
||||
, extraGitConfigs ? [ ]
|
||||
}: {
|
||||
enable = true;
|
||||
userName = userName;
|
||||
userEmail = userEmail;
|
||||
delta = { enable = true; };
|
||||
extraConfig = {
|
||||
color = { ui = "auto"; };
|
||||
push = {
|
||||
default = "upstream";
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
init = { defaultBranch = "main"; };
|
||||
};
|
||||
includes =
|
||||
(builtins.map (f: { path = gitconfigs + "/" + f; }) gitconfigFiles)
|
||||
++ extraGitConfigs;
|
||||
};
|
||||
in
|
||||
{
|
||||
makeCommonGitConfigs = makeCommonGitConfigs;
|
||||
}
|
||||
Reference in new issue
Block a user