grimm-nix-server/modules/mastodon.nix

18 lines
420 B
Nix
Raw Normal View History

2023-12-30 16:02:18 +01:00
{ 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";
};
}