mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: set up a system mailer so that errors will be emailed
This commit is contained in:
parent
491419f625
commit
24b6a385d6
1 changed files with 19 additions and 0 deletions
19
modules/services/email.nix
Normal file
19
modules/services/email.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
programs.msmtp = {
|
||||||
|
enable = true;
|
||||||
|
accounts.default = {
|
||||||
|
auth = true;
|
||||||
|
tls = true;
|
||||||
|
port = 465;
|
||||||
|
host = "smtp.migadu.com";
|
||||||
|
from = config.liv.variables.senderEmail;
|
||||||
|
user = config.liv.variables.senderEmail;
|
||||||
|
passwordeval = "${pkgs.coreutils}/bin/cat ${config.sops.secrets.systemMailerPassword.path}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue