2024-05-08 21:50:08 +02:00
|
|
|
{ config, ... }:
|
2024-05-08 21:49:37 +02:00
|
|
|
let
|
2024-05-11 22:55:59 +02:00
|
|
|
inherit (config.serverConfig) vhosts;
|
2024-05-08 21:49:37 +02:00
|
|
|
inherit (config.networking) domain;
|
2024-05-08 21:50:08 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-08 21:49:37 +02:00
|
|
|
services.mastodon = {
|
|
|
|
enable = true;
|
2024-05-09 14:55:02 +02:00
|
|
|
localDomain = vhosts.mastodon_host.host;
|
2024-05-08 21:49:37 +02:00
|
|
|
streamingProcesses = 7;
|
|
|
|
configureNginx = true;
|
|
|
|
smtp = {
|
|
|
|
fromAddress = "noreply@${domain}";
|
|
|
|
};
|
|
|
|
extraConfig.SINGLE_USER_MODE = "true";
|
|
|
|
};
|
|
|
|
}
|