From cea3dfac9e5a4bcc13100623be892a37b2d80c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 1 Aug 2025 04:39:39 +0200 Subject: [PATCH] nixos/prosody: add muc_moderation --- nixos/modules/services/networking/prosody.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/prosody.nix b/nixos/modules/services/networking/prosody.nix index ebc7f057bae3..198d99501f2c 100644 --- a/nixos/modules/services/networking/prosody.nix +++ b/nixos/modules/services/networking/prosody.nix @@ -369,6 +369,11 @@ let kick other. Useful in jitsi-meet to kick ghosts. ''; }; + moderation = mkOption { + type = types.bool; + default = false; + description = "Allow rooms to be moderated"; + }; # Extra parameters. Defaulting to prosody default values. # Adding them explicitly to make them visible from the options @@ -567,7 +572,7 @@ let ${lib.concatMapStrings (muc: '' Component ${toLua muc.domain} "muc" - modules_enabled = {${optionalString cfg.modules.mam ''"muc_mam",''}${optionalString muc.allowners_muc ''"muc_allowners",''} } + modules_enabled = {${optionalString cfg.modules.mam ''"muc_mam",''}${optionalString muc.allowners_muc ''"muc_allowners",''}${optionalString muc.moderation ''"muc_moderation",''} } name = ${toLua muc.name} restrict_room_creation = ${toLua muc.restrictRoomCreation} max_history_messages = ${toLua muc.maxHistoryMessages}