mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
22 lines
477 B
Nix
22 lines
477 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets."gmail-password" = { };
|
|
|
|
services.nextcloud.settings = {
|
|
mail_smtpmode = "sendmail";
|
|
mail_sendmailmode = "pipe";
|
|
};
|
|
|
|
programs.msmtp = {
|
|
enable = true;
|
|
accounts.default = {
|
|
auth = true;
|
|
tls = true;
|
|
host = "smtp.gmail.com";
|
|
port = "587";
|
|
user = "nextcloud.stork";
|
|
from = "nextcloud.stork@gmail.com";
|
|
passwordeval = "cat ${config.sops.secrets."gmail-password".path}";
|
|
};
|
|
};
|
|
}
|