git: Setup git send-email

This commit is contained in:
Simon Bruder 2022-06-16 19:25:11 +02:00
parent c1794d2f78
commit 0d125352a3
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,7 +1,8 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitFull;
userName = "Simon Bruder";
userEmail = "simon@sbruder.de";
signing = {
@ -25,6 +26,16 @@
};
sops.textconv = "${pkgs.sops}/bin/sops -d";
};
sendemail = {
confirm = "auto";
smtpserver = "vueko.sbruder.de";
smtpuser = "simon@sbruder.de";
smtpencryption = "tls";
smtpserverport = 587;
};
credential = {
helper = "!${pkgs.pass-git-helper}/bin/pass-git-helper $@";
};
};
ignores = [
@ -85,4 +96,10 @@
gsm = "git switch ${defaultBranch}";
gst = "git status";
};
xdg.configFile = {
"pass-git-helper/git-pass-mapping.ini".text = lib.generators.toINI { } {
"vueko.sbruder.de:587".target = "sbruder.de/mail";
};
};
}