2023-05-18 16:11:26 +05:30
|
|
|
{...}: let
|
2023-05-27 19:55:24 +05:30
|
|
|
user = (import ../../secrets.nix).users;
|
2023-05-18 16:11:26 +05:30
|
|
|
in {
|
2023-04-07 19:09:05 +05:30
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
diff-so-fancy = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
userEmail = user.primary.emailAddress;
|
|
|
|
userName = user.primary.realName;
|
|
|
|
signing = {
|
|
|
|
key = user.primary.signingKey;
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
};
|
2023-05-18 16:11:26 +05:30
|
|
|
ignores = ["/.nix" "/.direnv"];
|
2023-04-07 19:09:05 +05:30
|
|
|
};
|
|
|
|
}
|