gitea email support

This commit is contained in:
2025-09-19 11:15:26 -06:00
parent 3d16556312
commit c234acacec
3 changed files with 40 additions and 25 deletions

View File

@@ -0,0 +1,25 @@
{
config,
lib,
...
}:
let
cfg = config.my.servers;
in
{
config = lib.mkIf cfg.nextcloud.enable or cfg.gitea.enable {
sops.secrets.smtp-password = { };
programs.msmtp = {
enable = true;
accounts.default = {
auth = true;
host = "smtp.gmail.com";
port = 587;
tls = true;
from = config.my.smtpemail;
user = config.my.smtpemail;
passwordeval = "cat ${config.sops.secrets.smtp-password.path}";
};
};
};
}