{ config, pkgs, ... }: let inherit (config.serverConfig) vhosts; inherit (config.networking) domain; in { services.mastodon = { enable = true; localDomain = vhosts.mastodon_host.host; streamingProcesses = 7; configureNginx = true; smtp = { fromAddress = "noreply@${domain}"; }; extraConfig.SINGLE_USER_MODE = "true"; package = pkgs.mastodon.override { patches = [ ../patches/mastodon_post_size.patch ]; }; }; }