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