grimm-nix-server/modules/mastodon.nix
2023-12-30 15:02:18 +00:00

18 lines
420 B
Nix

{ config, ... } :
let
root_host = "grimmauld.de";
mastodon_host = "mastodon.${root_host}";
in {
security.acme.certs."${root_host}".extraDomainNames = [ mastodon_host ];
services.mastodon = {
enable = true;
localDomain = mastodon_host;
streamingProcesses = 7;
configureNginx = true;
smtp = {
fromAddress = "noreply@${root_host}";
};
extraConfig.SINGLE_USER_MODE = "true";
};
}