change whatsapp module

This commit is contained in:
Kabbone 2025-05-27 15:24:34 +02:00
parent b5bfa3a4b2
commit 333d829a6f
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 19 additions and 49 deletions

View File

@ -83,37 +83,6 @@ in {
}; };
}; };
users = {
users = {
mautrix-whatsapp = {
uid = 3001;
group = "mautrix-whatsapp";
isSystemUser = true;
};
mautrix-telegram = {
uid = 3002;
group = "mautrix-telegram";
isSystemUser = true;
};
mautrix-signal = {
uid = 3003;
group = "mautrix-signal";
isSystemUser = true;
};
};
groups = {
mautrix-whatsapp = {
gid = 3001;
};
mautrix-telegram = {
gid = 3002;
};
mautrix-signal = {
gid = 3003;
};
};
};
services = { services = {
mautrix-telegram = { mautrix-telegram = {
enable = true; enable = true;
@ -185,6 +154,8 @@ in {
appservice = { appservice = {
hostname = "127.0.0.1"; hostname = "127.0.0.1";
id = "signal"; id = "signal";
as_token = "$MAUTRIX_SIGNAL_AS_TOKEN";
hs_token = "$MAUTRIX_SIGNAL_HS_TOKEN";
}; };
database = { database = {
type = "postgres"; type = "postgres";
@ -230,11 +201,13 @@ in {
appservice = { appservice = {
hostname = "127.0.0.1"; hostname = "127.0.0.1";
id = "whatsapp"; id = "whatsapp";
as_token = "$MAUTRIX_WHATSAPP_AS_TOKEN";
hs_token = "$MAUTRIX_WHATSAPP_HS_TOKEN";
database = {
type = "postgres";
uri = "$MAUTRIX_WHATSAPP_APPSERVICE_DATABASE";
};
}; };
database = {
type = "postgres";
uri = "$MAUTRIX_WHATSAPP_APPSERVICE_DATABASE";
};
encryption = { encryption = {
allow = true; allow = true;
default = true; default = true;
@ -244,27 +217,24 @@ in {
}; };
pickle_key = "$MAUTRIX_WHATSAPP_ENCRYPTION_PICKLE_KEY"; pickle_key = "$MAUTRIX_WHATSAPP_ENCRYPTION_PICKLE_KEY";
}; };
network = {
history_sync = {
request_full_sync = true;
};
};
backfill = {
enabled = true;
};
bridge = { bridge = {
history_sync.request_full_sync = true;
encryption = {
allow = true;
default = true;
verification_levels = {
receive = "cross-signed-untrusted";
send = "cross-signed-untrusted";
};
pickle_key = "$MAUTRIX_WHATSAPP_ENCRYPTION_PICKLE_KEY";
};
private_chat_portal_meta = true;
permissions = { permissions = {
"@kabbone:kabtop.de" = "admin"; "@kabbone:kabtop.de" = "admin";
}; };
}; };
logging = { logging = {
min_level = "warn"; min_level = "warn";
writers = [
{
format = "pretty-colored";
type = "stdout";
}
];
}; };
}; };
}; };