grimm-nix-server/modules/mastodon.nix

18 lines
419 B
Nix
Raw Permalink Normal View History

2023-12-30 16:02:18 +01:00
{ config, ... } :
let
2024-05-08 20:45:41 +02:00
inherit (config.networking) domain;
mastodon_host = "mastodon.${domain}";
2023-12-30 16:02:18 +01:00
in {
2024-05-08 20:45:41 +02:00
security.acme.certs."${domain}".extraDomainNames = [ mastodon_host ];
2023-12-30 16:02:18 +01:00
services.mastodon = {
enable = true;
localDomain = mastodon_host;
streamingProcesses = 7;
configureNginx = true;
smtp = {
2024-05-08 20:45:41 +02:00
fromAddress = "noreply@${domain}";
2023-12-30 16:02:18 +01:00
};
extraConfig.SINGLE_USER_MODE = "true";
};
}