-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
matrix: bridges are no longer containers
- Loading branch information
Showing
12 changed files
with
100 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
age-encryption.org/v1 | ||
-> ssh-ed25519 MtGp6g TjcF9u1gbYjURFImt7uh+O7hNw3E2pR6H/i8Xd90DkU | ||
wdeuBiwP0BTzMeVx+i7+jpWFaAW+dMnsXakFenPad/E | ||
-> ssh-ed25519 iO8/4g V/BUJLff8IK0g5UFXqJ5ftK6Fs8zpheFr4ETzKQd5xs | ||
0hzEB9qG6VX878t7tZzfjyH2BkgAhl+uDR4jX9chwgY | ||
-> g.G-grease X;7X` 3ecO{T|m | ||
/2RKLQzMCznCQXYnltmy7YhoXzHRJ4oxdArYCfQzJEcWDwy465xgm8EMNdu0mNA+ | ||
O15n2g | ||
--- C896AcFfLEvwf3tcYqZP5dfPKFmE4oaaKH6KveEao6A | ||
'��{�3��*v�䖋�Ѷ4��ޫ���<�;��QC(�b-�`.�go���n�˲<>:��l0�ԑ�]T 2Δ*��h���%�l�*W�A ��O(���屄W�R�A0[��_H�C��6` | ||
-> ssh-ed25519 MtGp6g /N1cHH7SmlpEdvKEcMzVflInTXChp+eWJFU2RoPWMUk | ||
7nLndAtQ3DWXYmPvwq9tDPBiPLJMuDuCRtSXdFveSoo | ||
-> ssh-ed25519 iO8/4g WSUXe/SRWLMN23PWyOM7qOCbXOFvTrzmTcq0zW/ABFs | ||
NmQoYqT0x6t0WByQrIg+OAvP4VUU5tVydAHfVTZvPUE | ||
-> eo6mwb;-grease :nS'C`f ?/iI) | ||
oQ4Y4ksapQU8WwrdzObrSTiUiS37dk+c180046s7BqC6GX8iXFjR9kQSPb6tR9bl | ||
Nhh/zHwzdGQmy7VekRL8ZdpbUeKd5D6X7w | ||
--- aHWIb4WJ+O2kXUGFczOA6ngejy6jkMOmrFmcKLllq8s | ||
*?DG��L5����Bf&AH�;��a�s��%1�h1rdO���&�q"D�`CQ�5���x�q���2���_�[g����Dd��'+�g�)6n��/�*,�;lxS;R[����c� �( |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
imports = [ | ||
./synapse.nix | ||
./mautrix-whatsapp.nix | ||
./mautrix-signal.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ pkgs, config, ... }: | ||
|
||
{ | ||
services.signald.enable = true; | ||
systemd.services.signald.serviceConfig.EnvironmentFile = [ | ||
config.age.secrets.signald-environment.path | ||
]; | ||
|
||
systemd.services.mautrix-signal = { | ||
description = "A Matrix-Signal puppeting bridge"; | ||
wantedBy = [ "multi-user.target" ]; | ||
requires = [ "matrix-synapse.service" "signald.service" ]; | ||
after = [ "matrix-synapse.service" "signald.service" ]; | ||
restartTriggers = [ "${config.age.secrets.mautrix-signal-config.file}" ]; | ||
serviceConfig = { | ||
User = config.services.signald.user; | ||
Group = config.services.signald.group; | ||
LoadCredential = [ "config:${config.age.secrets.mautrix-signal-config.path}" ]; | ||
ExecStart = "${pkgs.mautrix-signal}/bin/mautrix-signal --config=%d/config --no-update"; | ||
Restart = "on-failure"; | ||
RestartSec = "5s"; | ||
|
||
StateDirectory = "mautrix-signal"; | ||
RuntimeDirectory = "mautrix-signal"; | ||
StateDirectoryMode = "0750"; | ||
RuntimeDirectoryMode = "0750"; | ||
|
||
ProtectHome = true; | ||
ProtectKernelTunables = true; | ||
ProtectKernelModules = true; | ||
ProtectControlGroups = true; | ||
PrivateTmp = true; | ||
}; | ||
}; | ||
|
||
services.matrix-synapse.settings.app_service_config_files = [ | ||
"/var/lib/matrix-synapse/bridges/registration-signal.yaml" | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ pkgs, config, ... }: | ||
|
||
{ | ||
systemd.services.mautrix-whatsapp = { | ||
description = "Matrix <-> Whatsapp hybrid puppeting/relaybot bridge"; | ||
wantedBy = [ "multi-user.target" ]; | ||
requires = [ "matrix-synapse.service" ]; | ||
after = [ "matrix-synapse.service" ]; | ||
restartTriggers = [ "${config.age.secrets.mautrix-whatsapp-config.file}" ]; | ||
serviceConfig = { | ||
DynamicUser = true; | ||
StateDirectory = "mautrix-whatsapp"; | ||
LoadCredential = [ "config:${config.age.secrets.mautrix-whatsapp-config.path}" ]; | ||
ExecStart = "${pkgs.mautrix-whatsapp}/bin/mautrix-whatsapp --config=%d/config --no-update"; | ||
Restart = "on-failure"; | ||
RestartSec = "5s"; | ||
|
||
ProtectSystem = "strict"; | ||
ProtectHome = true; | ||
ProtectKernelTunables = true; | ||
ProtectKernelModules = true; | ||
ProtectControlGroups = true; | ||
PrivateTmp = true; | ||
}; | ||
}; | ||
|
||
services.matrix-synapse.settings.app_service_config_files = [ | ||
"/var/lib/matrix-synapse/bridges/registration-whatsapp.yaml" | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters