22 lines
476 B
Nix
22 lines
476 B
Nix
{secrets, ...}: let
|
|
user = secrets.users;
|
|
in {
|
|
programs.git = {
|
|
enable = true;
|
|
diff-so-fancy = {
|
|
enable = true;
|
|
};
|
|
userEmail = user.primary.emailAddress;
|
|
userName = user.primary.realName;
|
|
signing = {
|
|
key = user.primary.pgpFingerprint;
|
|
signByDefault = true;
|
|
};
|
|
extraConfig = {
|
|
init.defaultBranch = "main";
|
|
push.autoSetupRemote = true;
|
|
pull.rebase = true;
|
|
};
|
|
ignores = ["/.nix" "/.direnv"];
|
|
};
|
|
}
|