grimm-nixos-laptop/modules/mastodon.nix

19 lines
418 B
Nix
Raw Normal View History

2024-05-08 21:50:08 +02:00
{ config, ... }:
2024-05-08 21:49:37 +02:00
let
inherit (config.networking) domain;
mastodon_host = "mastodon.${domain}";
2024-05-08 21:50:08 +02:00
in
{
2024-05-08 21:49:37 +02:00
security.acme.certs."${domain}".extraDomainNames = [ mastodon_host ];
services.mastodon = {
enable = true;
localDomain = mastodon_host;
streamingProcesses = 7;
configureNginx = true;
smtp = {
fromAddress = "noreply@${domain}";
};
extraConfig.SINGLE_USER_MODE = "true";
};
}