grimm-nixos-laptop/modules/mastodon.nix

18 lines
358 B
Nix
Raw Normal View History

2024-05-08 21:50:08 +02:00
{ config, ... }:
2024-05-08 21:49:37 +02:00
let
2024-05-11 22:55:59 +02:00
inherit (config.serverConfig) vhosts;
2024-05-08 21:49:37 +02:00
inherit (config.networking) domain;
2024-05-08 21:50:08 +02:00
in
{
2024-05-08 21:49:37 +02:00
services.mastodon = {
enable = true;
localDomain = vhosts.mastodon_host.host;
2024-05-08 21:49:37 +02:00
streamingProcesses = 7;
configureNginx = true;
smtp = {
fromAddress = "noreply@${domain}";
};
extraConfig.SINGLE_USER_MODE = "true";
};
}