forked from CCCHH/nix-infra
32 lines
764 B
Nix
32 lines
764 B
Nix
# 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
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
services.mjolnir = {
|
|
enable = true;
|
|
homeserverUrl = "https://matrix.hamburg.ccc.de";
|
|
managementRoom = "#moderation-management:hamburg.ccc.de";
|
|
settings = {
|
|
verboseLogging = false;
|
|
};
|
|
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" ];
|
|
};
|
|
}
|