nix-infra/common/fragments/mastodon.nix

37 lines
1021 B
Nix
Raw Normal View History

2023-04-30 10:49:28 +00:00
{ config, pkgs, ... }: {
services.mastodon = {
enable = true;
package = pkgs.agatha-mastodon;
localDomain = "technogothic.net";
configureNginx = false;
smtp.fromAddress = "noreply@technogothic.net";
smtp.createLocally = false;
database.passwordFile = "/var/lib/mastodon/secrets/db-password";
2023-12-17 20:05:44 +00:00
streamingProcesses = 4;
2023-05-03 11:47:01 +00:00
elasticsearch = {
host = "127.0.0.1";
inherit (config.services.elasticsearch) port;
};
2023-04-30 10:49:28 +00:00
extraConfig = {
WEB_DOMAIN = "fv.technogothic.net";
GITHUB_REPOSITORY = "AgathaSorceress/mastodon";
AUTHORIZED_FETCH = "true";
MAX_TOOT_CHARS = "6666";
MAX_POLL_OPTIONS = "128";
MAX_POLL_OPTION_CHARS = "512";
EXTRA_DATA_HOSTS = "https://ftp.technogothic.net";
2023-09-25 14:24:06 +00:00
MASTODON_VERSION_METADATA = "+AGATHA+AGATHA";
2023-04-30 10:49:28 +00:00
};
};
users.groups.mastodon.members = [ config.services.nginx.user ];
2023-05-03 11:47:01 +00:00
services.elasticsearch = {
enable = true;
cluster_name = "mastodon-es";
package = pkgs.elasticsearch7;
};
2023-04-30 10:49:28 +00:00
}