nixos-config/users/rouven/modules/git/default.nix

42 lines
955 B
Nix
Raw Normal View History

2024-03-11 22:48:42 +01:00
{ ... }:
2022-12-19 19:30:32 +01:00
{
programs.git = {
enable = true;
userName = "Rouven Seifert";
2023-03-26 14:27:15 +02:00
userEmail = "rouven@rfive.de";
delta = {
enable = true;
options = {
features = "decorations";
2023-02-25 23:59:19 +01:00
navigate = true;
light = false;
side-by-side = true;
line-numbers = true;
};
};
extraConfig = {
2023-02-25 23:59:19 +01:00
merge.conflictStyle = "diff3";
diff.colorMoved = "default";
2022-12-19 19:30:32 +01:00
user.signingkey = "B95E8FE6B11C4D09";
pull.rebase = false;
init.defaultBranch = "main";
commit.gpgsign = true;
sendemail = {
from = "Rouven Seifert <rouven@rfive.de>";
smtpEncryption = "ssl";
smtpServer = "mail.rfive.de";
smteServerPort = 465;
smtpSslCertPath = "/etc/ssl/certs/ca-certificates.crt";
smtpUser = "rouven";
};
2022-12-19 19:30:32 +01:00
};
};
2023-01-06 22:39:08 +01:00
programs.gh = {
enable = true;
settings = {
2023-05-26 00:01:59 +02:00
editor = "hx";
2023-01-06 22:39:08 +01:00
git_protocol = "ssh";
};
};
2022-12-19 19:30:32 +01:00
}