hosts/vps1: update mautrix bridges
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m39s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m39s
- Regenerate pickle keys - Enable double puppeting
This commit is contained in:
@@ -41,8 +41,6 @@ let
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
pickle_key =
|
||||
if (bridge == "mautrix-whatsapp") then "maunium.net/go/mautrix-whatsapp" else "mautrix.bridge.e2ee";
|
||||
};
|
||||
provisioning = {
|
||||
shared_secret = "disable";
|
||||
@@ -71,6 +69,24 @@ in
|
||||
(inputs.nixpkgs-unstable + /nixos/modules/services/matrix/mautrix-whatsapp.nix)
|
||||
];
|
||||
|
||||
age.secrets = {
|
||||
mautrix-doublepuppet-registration = {
|
||||
rekeyFile = ./secrets/mautrix-doublepuppet-registration.age;
|
||||
mode = "0440";
|
||||
group = "matrix-synapse";
|
||||
};
|
||||
mautrix-signal-env = {
|
||||
rekeyFile = ./secrets/mautrix-signal-env.age;
|
||||
mode = "0440";
|
||||
group = "mautrix-signal";
|
||||
};
|
||||
mautrix-whatsapp-env = {
|
||||
rekeyFile = ./secrets/mautrix-whatsapp-env.age;
|
||||
mode = "0440";
|
||||
group = "mautrix-whatsapp";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8448 # Matrix federation
|
||||
];
|
||||
@@ -177,6 +193,9 @@ in
|
||||
enable = true;
|
||||
enableRegistrationScript = true;
|
||||
settings = {
|
||||
app_service_config_files = [
|
||||
config.age.secrets.mautrix-doublepuppet-registration.path
|
||||
];
|
||||
database.name = (if usePostgresql then "psycopg2" else "sqlite3");
|
||||
enable_metrics = false;
|
||||
enable_registration = false;
|
||||
@@ -213,16 +232,25 @@ in
|
||||
|
||||
services.mautrix-signal = lib.mkIf bridges.signal {
|
||||
enable = true;
|
||||
settings = commonBridgeSettings "mautrix-signal";
|
||||
environmentFile = config.age.secrets.mautrix-signal-env.path;
|
||||
settings = lib.recursiveUpdate {
|
||||
encryption = {
|
||||
pickle_key = "$MAUTRIX_SIGNAL_ENCRYPTION_PICKLE_KEY";
|
||||
};
|
||||
} (commonBridgeSettings "mautrix-signal");
|
||||
};
|
||||
|
||||
services.mautrix-whatsapp = lib.mkIf bridges.whatsapp {
|
||||
enable = true;
|
||||
environmentFile = config.age.secrets.mautrix-whatsapp-env.path;
|
||||
settings = lib.recursiveUpdate {
|
||||
backfill = {
|
||||
enabled = true;
|
||||
max_initial_messags = 50;
|
||||
};
|
||||
encryption = {
|
||||
pickle_key = "$MAUTRIX_WHATSAPP_ENCRYPTION_PICKLE_KEY";
|
||||
};
|
||||
network = {
|
||||
mute_status_broadcast = true;
|
||||
history_sync = {
|
||||
|
||||
BIN
hosts/vps1/secrets/mautrix-doublepuppet-registration.age
Normal file
BIN
hosts/vps1/secrets/mautrix-doublepuppet-registration.age
Normal file
Binary file not shown.
BIN
hosts/vps1/secrets/mautrix-signal-env.age
Normal file
BIN
hosts/vps1/secrets/mautrix-signal-env.age
Normal file
Binary file not shown.
10
hosts/vps1/secrets/mautrix-whatsapp-env.age
Normal file
10
hosts/vps1/secrets/mautrix-whatsapp-env.age
Normal file
@@ -0,0 +1,10 @@
|
||||
age-encryption.org/v1
|
||||
-> piv-p256 a1N2XA Aun1dGh6g8jvPV3vYn1oUoP+LjhV973flcjtVIqtdvHU
|
||||
ZJgOWsP2WeQEFImxZfWgv2p6JJax3Hc3BW7UQ455l5o
|
||||
-> ;2e%O0-grease Ct9^D x[W(+5% vo@!Dg~p ?,{
|
||||
LvLHWuzvEitBOTvXnva7wk7iSnlW7QO9
|
||||
--- EX0W81CgIg/olFdTbVgSOkPo43W81hzOyyUVwC4iNTI
|
||||
yY×ÛÅ;àdþê6#àq%G{Á]šQÞmv(L‚è‡ÓG_Æfæ~×
|
||||
Áò=
|
||||
ÞÄös ¥¡S‚òiU¥Ôû}³2¨¤æV·_óþrHÇn×S› ¤$é8‘ Oñ1‘|¼9'ßð<11>#Åì{
|
||||
‡€ÍlUÇ7y[îMSÐFG!<21>ëĤ—ôH³bþ‰]?àBC(¬j™™ŒsXê4
|
||||
Reference in New Issue
Block a user