feat: setup email notification on systemd failures
This commit is contained in:
parent
ed11e6c19a
commit
68d499f5cf
4 changed files with 103 additions and 0 deletions
22
services/mail.nix
Normal file
22
services/mail.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
defaults = {
|
||||
tls = true;
|
||||
tls_starttls = true;
|
||||
auth = true;
|
||||
};
|
||||
accounts.default = rec {
|
||||
tls = true;
|
||||
tls_starttls = true;
|
||||
host = "smtp.web.de";
|
||||
port = 587;
|
||||
user = "felschr@web.de";
|
||||
passwordeval = "cat /etc/nixos/secrets/smtp";
|
||||
# from = "%U@server.felschr.com";
|
||||
from = user;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue