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-signal: add

+69
+1
machines/neoprism/config.nix
··· 16 16 ../../2configs/services/matrix 17 17 ../../2configs/services/matrix/proxy.nix 18 18 ../../2configs/services/matrix/bridges/mautrix-whatsapp.nix 19 + ../../2configs/services/matrix/bridges/mautrix-signal.nix 19 20 20 21 ../../2configs/services/pad 21 22
+68
2configs/services/matrix/bridges/mautrix-signal.nix
··· 1 + { pkgs, ... }: 2 + { 3 + services.mautrix-signal = { 4 + enable = true; 5 + registerToSynapse = true; 6 + # use pure-Go olm implementation to avoid the insecure libolm dependency 7 + package = pkgs.mautrix-signal.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:29328"; 15 + hostname = "127.0.0.1"; 16 + port = 29328; 17 + username_template = "signal_{{.}}"; 18 + }; 19 + database = { 20 + type = "postgres"; 21 + uri = "postgres:///mautrix-signal?host=/run/postgresql"; 22 + }; 23 + # mautrix-signal v2 (bridgev2 framework) splits config into multiple 24 + # top-level sections; see mautrix-whatsapp.nix for explanation. 25 + network = { 26 + displayname_template = "{{or .ProfileName .PhoneNumber \"Unknown user\"}} (S)"; 27 + }; 28 + matrix = { 29 + delivery_receipts = false; 30 + message_status_events = false; 31 + }; 32 + encryption = { 33 + allow = false; 34 + default = false; 35 + require = false; 36 + }; 37 + bridge = { 38 + personal_filtering_spaces = true; 39 + permissions = { 40 + "lassul.us" = "user"; 41 + "@lassulus:lassul.us" = "admin"; 42 + }; 43 + }; 44 + logging = { 45 + min_level = "info"; 46 + writers = [ 47 + { 48 + type = "stdout"; 49 + format = "pretty-colored"; 50 + } 51 + ]; 52 + }; 53 + }; 54 + }; 55 + 56 + # let synapse read the appservice registration file written by the bridge 57 + users.users.matrix-synapse.extraGroups = [ "mautrix-signal" ]; 58 + 59 + services.postgresql = { 60 + ensureDatabases = [ "mautrix-signal" ]; 61 + ensureUsers = [ 62 + { 63 + name = "mautrix-signal"; 64 + ensureDBOwnership = true; 65 + } 66 + ]; 67 + }; 68 + }