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