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-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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
}
|