grimm-nixos-laptop/modules/mastodon.nix

19 lines
457 B
Nix
Raw Normal View History

2025-02-25 13:24:22 +01:00
{ config, pkgs, ... }:
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";
2025-02-25 13:24:22 +01:00
package = pkgs.mastodon.override { patches = [ ../patches/mastodon_post_size.patch ]; };
2024-05-08 21:49:37 +02:00
};
}