Skip to content

Commit b151674

Browse files
nixos/prosody: add muc_moderation (#431289)
2 parents f4d7ecf + cea3dfa commit b151674

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nixos/modules/services/networking/prosody.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ let
369369
kick other. Useful in jitsi-meet to kick ghosts.
370370
'';
371371
};
372+
moderation = mkOption {
373+
type = types.bool;
374+
default = false;
375+
description = "Allow rooms to be moderated";
376+
};
372377

373378
# Extra parameters. Defaulting to prosody default values.
374379
# Adding them explicitly to make them visible from the options
@@ -567,7 +572,7 @@ let
567572
568573
${lib.concatMapStrings (muc: ''
569574
Component ${toLua muc.domain} "muc"
570-
modules_enabled = {${optionalString cfg.modules.mam ''"muc_mam",''}${optionalString muc.allowners_muc ''"muc_allowners",''} }
575+
modules_enabled = {${optionalString cfg.modules.mam ''"muc_mam",''}${optionalString muc.allowners_muc ''"muc_allowners",''}${optionalString muc.moderation ''"muc_moderation",''} }
571576
name = ${toLua muc.name}
572577
restrict_room_creation = ${toLua muc.restrictRoomCreation}
573578
max_history_messages = ${toLua muc.maxHistoryMessages}

0 commit comments

Comments
 (0)