2024-10-15 17:46:44 -04:00
|
|
|
{ pkgs, config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-08-30 01:17:50 -04:00
|
|
|
services.mastodon = {
|
2024-08-24 22:16:51 -04:00
|
|
|
enable = true;
|
2024-10-15 17:46:44 -04:00
|
|
|
localDomain = "social.${config.secrets.jimDomain}";
|
2024-08-24 22:16:51 -04:00
|
|
|
streamingProcesses = 4;
|
|
|
|
configureNginx = true;
|
|
|
|
smtp = {
|
|
|
|
createLocally = false;
|
2024-10-15 17:46:44 -04:00
|
|
|
host = "mx.${config.secrets.jimDomain}";
|
2024-08-24 22:16:51 -04:00
|
|
|
port = 587;
|
|
|
|
authenticate = true;
|
2024-10-15 17:46:44 -04:00
|
|
|
fromAddress = "Jimbo's Mastodon <noreply@${config.secrets.jimDomain}>";
|
|
|
|
user = "noreply@${config.secrets.jimDomain}";
|
|
|
|
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.noreplyPassword;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|