{ pkgs, config, ... }: { services.mastodon = { enable = true; localDomain = "social.${config.domains.jim1}"; streamingProcesses = 4; configureNginx = true; smtp = { createLocally = false; host = "mx.${config.domains.jim1}"; port = 587; authenticate = true; fromAddress = "Jimbo's Mastodon "; user = "noreply@${config.domains.jim1}"; passwordFile = pkgs.writeText "smtp_pass.txt" config.secrets.noreplyPassword; }; }; }