2024-06-20 23:45:44 +02:00
|
|
|
# Sources for this configuration:
|
|
|
|
# - https://github.com/matrix-org/mjolnir/blob/main/docs/setup.md
|
|
|
|
# - https://github.com/matrix-org/mjolnir/blob/main/config/default.yaml
|
|
|
|
|
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2024-09-30 23:20:06 +02:00
|
|
|
# Allow deprecated, apparently somewhat insecure libolm to be able to update
|
|
|
|
# the moderation bot.
|
|
|
|
# The security issues aren't real world exploitable apparently:
|
|
|
|
# https://matrix.org/blog/2024/08/libolm-deprecation/
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [ "olm-3.2.16" ];
|
2024-06-20 23:45:44 +02:00
|
|
|
services.mjolnir = {
|
|
|
|
enable = true;
|
|
|
|
homeserverUrl = "https://matrix.hamburg.ccc.de";
|
|
|
|
managementRoom = "#moderation-management:hamburg.ccc.de";
|
2024-06-22 16:07:01 +02:00
|
|
|
settings = {
|
|
|
|
verboseLogging = false;
|
|
|
|
};
|
2024-06-20 23:45:44 +02:00
|
|
|
pantalaimon = {
|
|
|
|
enable = true;
|
|
|
|
username = "moderation";
|
|
|
|
passwordFile = "/run/secrets/matrix_moderation_user_password";
|
|
|
|
options = {
|
|
|
|
ssl = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sops.secrets."matrix_moderation_user_password" = {
|
|
|
|
mode = "0440";
|
|
|
|
owner = "mjolnir";
|
|
|
|
group = "mjolnir";
|
|
|
|
restartUnits = [ "mjolnir.service" ];
|
|
|
|
};
|
|
|
|
}
|