grimm-nixos-laptop/modules2/mastodon.nix

19 lines
457 B
Nix
Raw Normal View History

2025-02-25 12:55:01 +01:00
{ config, pkgs, ... }:
2025-02-05 11:41:17 +01:00
let
inherit (config.serverConfig) vhosts;
inherit (config.networking) domain;
in
{
services.mastodon = {
enable = true;
localDomain = vhosts.mastodon_host.host;
streamingProcesses = 7;
configureNginx = true;
smtp = {
fromAddress = "noreply@${domain}";
};
extraConfig.SINGLE_USER_MODE = "true";
2025-02-25 12:55:01 +01:00
package = pkgs.mastodon.override { patches = [ ../patches/mastodon_post_size.patch ]; };
2025-02-05 11:41:17 +01:00
};
}