18 lines
358 B
Nix
18 lines
358 B
Nix
{ config, ... }:
|
|
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";
|
|
};
|
|
}
|