nixos/prosody: add muc_moderation

This commit is contained in:
Sandro Jäckel
2025-08-20 15:55:15 +02:00
parent 7c1454b4e1
commit cea3dfac9e
@@ -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}