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