This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

2configs.services.matrix.bridges.mautrix-whatsapp: add

+74
+1
machines/neoprism/config.nix
··· 15 15 16 16 ../../2configs/services/matrix 17 17 ../../2configs/services/matrix/proxy.nix 18 + ../../2configs/services/matrix/bridges/mautrix-whatsapp.nix 18 19 19 20 ../../2configs/services/pad 20 21
+73
2configs/services/matrix/bridges/mautrix-whatsapp.nix
··· 1 + { pkgs, ... }: 2 + { 3 + services.mautrix-whatsapp = { 4 + enable = true; 5 + registerToSynapse = true; 6 + # use pure-Go olm implementation to avoid the insecure libolm dependency 7 + package = pkgs.mautrix-whatsapp.override { withGoolm = true; }; 8 + settings = { 9 + homeserver = { 10 + address = "http://[::1]:8008"; 11 + domain = "lassul.us"; 12 + }; 13 + appservice = { 14 + address = "http://127.0.0.1:29318"; 15 + hostname = "127.0.0.1"; 16 + port = 29318; 17 + username_template = "whatsapp_{{.}}"; 18 + }; 19 + database = { 20 + type = "postgres"; 21 + uri = "postgres:///mautrix-whatsapp?host=/run/postgresql"; 22 + }; 23 + # mautrix-whatsapp v2 (bridgev2 framework) splits config into multiple 24 + # top-level sections: `network:` for WA-specific behavior, `matrix:` for 25 + # Matrix-side behavior, `encryption:` for E2EE, `bridge:` only for 26 + # generic bridge framework options. 27 + network = { 28 + displayname_template = "{{or .FullName .PushName .JID}} (WA)"; 29 + history_sync = { 30 + request_full_sync = true; 31 + }; 32 + }; 33 + matrix = { 34 + delivery_receipts = false; 35 + message_status_events = false; 36 + }; 37 + encryption = { 38 + allow = false; 39 + default = false; 40 + require = false; 41 + }; 42 + bridge = { 43 + personal_filtering_spaces = true; 44 + permissions = { 45 + "lassul.us" = "user"; 46 + "@lassulus:lassul.us" = "admin"; 47 + }; 48 + }; 49 + logging = { 50 + min_level = "info"; 51 + writers = [ 52 + { 53 + type = "stdout"; 54 + format = "pretty-colored"; 55 + } 56 + ]; 57 + }; 58 + }; 59 + }; 60 + 61 + # let synapse read the appservice registration file written by the bridge 62 + users.users.matrix-synapse.extraGroups = [ "mautrix-whatsapp" ]; 63 + 64 + services.postgresql = { 65 + ensureDatabases = [ "mautrix-whatsapp" ]; 66 + ensureUsers = [ 67 + { 68 + name = "mautrix-whatsapp"; 69 + ensureDBOwnership = true; 70 + } 71 + ]; 72 + }; 73 + }