anchor.diff:            Delegate SMS sending to this local process (https://localhost:8090)
           '';
         };
  -      room_invite_state_types = mkOption {
  +      room_prejoin_state.additional_event_types = mkOption {
  +        default = [];
           type = types.listOf types.str;
  -        default = ["m.room.join_rules" "m.room.canonical_alias" "m.room.avatar" "m.room.name"];
  -        description = ''
  -          A list of event types that will be included in the room_invite_state
  +        description = ''
  +          Additional events to share with users who received an invite.
  +        '';
  +      };
  +      room_prejoin_state.disable_default_event_types = mkOption {
  +        default = false;
  +        type = types.bool;
  +        description = ''
  +          Whether to disable the default state-event types for users invited to a room.
  +          These are:
  +
  +          <itemizedlist>
  +          <listitem><para>m.room.join_rules</para></listitem>
  +          <listitem><para>m.room.canonical_alias</para></listitem>
  +          <listitem><para>m.room.avatar</para></listitem>
  +          <listitem><para>m.room.encryption</para></listitem>
  +          <listitem><para>m.room.name</para></listitem>
  +          <listitem><para>m.room.create</para></listitem>
  +          </itemizedlist>
           '';
         };
         macaroon_secret_key = mkOption {
  
positive.code:       <nixpkgs/nixos/tests/matrix-synapse.nix>
      '')
      (mkRemovedOptionModule [ "services" "matrix-synapse" "web_client" ] "")
    ];
  
    meta.doc = ./matrix-synapse.xml;
  
negative.code:   ${optionalString (cfg.account_threepid_delegates.email != null) "email: ${cfg.account_threepid_delegates.email}"}
    ${optionalString (cfg.account_threepid_delegates.msisdn != null) "msisdn: ${cfg.account_threepid_delegates.msisdn}"}
  
  room_prejoin_state:
    disable_default_event_types: ${boolToString cfg.room_prejoin_state.disable_default_event_types}
    additional_event_types: ${builtins.toJSON cfg.room_prejoin_state.additional_event_types}
  ${optionalString (cfg.macaroon_secret_key != null) ''
    macaroon_secret_key: "${cfg.macaroon_secret_key}"
  ''}
  