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 = {
|
2025-01-10 14:12:33 -05:00
|
|
|
enable = config.system.socials.enable;
|
|
|
|
localDomain = "social.${config.domains.p2}";
|
2024-08-24 22:16:51 -04:00
|
|
|
streamingProcesses = 4;
|
|
|
|
configureNginx = true;
|
|
|
|
smtp = {
|
|
|
|
createLocally = false;
|
2025-01-01 02:02:00 -05:00
|
|
|
host = "mx.${config.domains.p1}";
|
2024-08-24 22:16:51 -04:00
|
|
|
port = 587;
|
|
|
|
authenticate = true;
|
2025-01-02 10:13:00 -05:00
|
|
|
fromAddress = "NixFox Mastodon <noreply@${config.domains.p2}>";
|
|
|
|
user = "noreply@${config.domains.p2}";
|
2024-10-15 17:46:44 -04:00
|
|
|
passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.noreplyPassword;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|