Rework mautrix-whatsapp config for 0.2

Many of the options are the default and some of them got renamed.
neomutt
Simon Bruder 2021-12-01 19:09:52 +01:00
parent e6f9ea1c67
commit 8d789fbba3
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 8 additions and 22 deletions

View File

@ -30,36 +30,21 @@ let
os_name = "Mautrix-WhatsApp bridge";
};
bridge = {
chat_list_wait = 30;
command_prefix = "!wa";
connection_retry_delay = -1;
connection_timeout = 20;
delivery_receipts = true;
displayname_template = "{{if .Name}}{{.Name}}{{else if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WA)";
fetch_message_on_timeout = true;
initial_chat_sync_count = 10;
initial_history_fill_count = 20;
invite_own_puppet_for_backfilling = true;
login_qr_regen_count = 2;
max_connection_attempts = 12;
portal_sync_wait = 600;
private_chat_portal_meta = true;
recovery_chat_sync_count = -1;
recovery_history_backfill = true;
relaybot.enabled = false;
report_connection_retry = true;
sync_max_chat_age = 259200;
sync_with_custom_puppets = true;
username_template = "whatsapp_{{.}}";
call_notices = {
start = true;
end = true;
displayname_template = "{{if .FullName}}{{.FullName}}{{else if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WA)";
history_sync = {
backfill = true;
};
identity_change_notices = true;
permissions = {
# Only one user since using the name from the address book does not
# work with multiple users
"@simon:${homeserver.domain}" = 100;
};
private_chat_portal_meta = true;
reaction_notices = true;
relay.enable = false;
};
logging.print_level = "info";
};
@ -83,6 +68,7 @@ in
serviceConfig = {
DynamicUser = true;
StateDirectory = "mautrix-whatsapp";
WorkingDirectory = "/var/lib/mautrix-whatsapp";
ExecStart = "${pkgs.mautrix-whatsapp}/bin/mautrix-whatsapp -c ${generatedConfig}/config.yaml";
Restart = "on-failure";
};