nixos/programs/git.nix

42 lines
977 B
Nix
Raw Permalink Normal View History

2024-06-16 10:10:36 +00:00
{ config, lib, pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitFull;
userEmail = "hackerncoder@encryptionin.space";
userName = "HackerNCoder";
diff-so-fancy.enable = true;
extraConfig = {
color = {
ui = true;
"diff" = {
meta = 11;
frag = "magenta bold";
func = "146 bold";
commit = "yellow bold";
old = "red bold";
new = "green bold";
whitespace = "red reverse";
};
"diff-highlight" = {
oldNormal = "red bold";
oldHighlight = "red bold 52";
newNormal = "green bold";
newHighlight = "green bold 52";
};
};
2024-07-14 09:32:29 +00:00
sendemail = {
2024-06-16 10:10:36 +00:00
smtpserver = "mail.encryptionin.space";
smtpuser = "hackerncoder@encryptionin.space";
smtpencryption = "ssl";
smtpserverport = 465;
};
2024-07-14 09:32:29 +00:00
merge = {
conflictstyle = "diff3";
};
2024-06-16 10:10:36 +00:00
};
};
}
2024-06-19 11:28:03 +00:00