nix-configs/nixos-modules/common/msmtp.nix

27 lines
570 B
Nix
Raw Normal View History

2024-09-05 19:08:29 -04:00
{ config, ... }:
{
2024-05-30 20:39:54 -04:00
sops.secrets."gmail/password" = { };
2024-04-26 14:14:50 -04:00
programs.msmtp = {
enable = true;
accounts.default = {
auth = true;
tls = true;
host = "smtp.gmail.com";
port = 587;
from = "${config.networking.hostName}@notification.icanttype.org";
user = "cdombroski";
passwordeval = "cat ${config.sops.secrets."gmail/password".path}";
};
defaults.aliases = "/etc/aliases";
};
environment.etc = {
"aliases" = {
text = ''
root: cdombroski@gmail.com
2024-05-30 20:39:54 -04:00
'';
2024-04-26 14:14:50 -04:00
mode = "0644";
};
};
}