git: Setup git send-email
This commit is contained in:
parent
c1794d2f78
commit
0d125352a3
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue