Compare commits

...

3 Commits

Author SHA1 Message Date
coolneng d1e4d48291
Add all bridges to MOTD 2022-07-20 22:38:38 +02:00
coolneng 03e31460a5
Set up the Telegram bridge 2022-07-20 22:38:20 +02:00
coolneng bf6a8a3859
Change owner for the signald service 2022-07-20 22:38:06 +02:00
5 changed files with 25 additions and 2 deletions

View File

@ -133,6 +133,11 @@ with pkgs;
owner = "63026"; owner = "63026";
group = "63026"; group = "63026";
}; };
secrets.telegram = {
file = secrets/telegram.age;
owner = "matrix-as-telegram";
group = "matrix-as-telegram";
};
identityPaths = [ "/home/coolneng/.ssh/id_ed25519" ]; identityPaths = [ "/home/coolneng/.ssh/id_ed25519" ];
}; };

View File

@ -55,6 +55,11 @@ in {
port = 8118; port = 8118;
format = "mautrix-python"; format = "mautrix-python";
package = mautrix-telegram; package = mautrix-telegram;
serviceConfig.EnvironmentFile = config.age.secrets.telegram.path;
settings.telegram = {
api_id = "$API_ID";
api_hash = "$API_HASH";
};
}; };
facebook = { facebook = {
port = 8228; port = 8228;
@ -79,7 +84,10 @@ in {
}; };
# Additional settings for mautrix-signal # Additional settings for mautrix-signal
services.signald.enable = true; services.signald = {
enable = true;
user = "matrix-as-signal";
};
systemd.services.matrix-as-signal = { systemd.services.matrix-as-signal = {
requires = [ "signald.service" ]; requires = [ "signald.service" ];
after = [ "signald.service" ]; after = [ "signald.service" ];

View File

@ -26,7 +26,9 @@ services=(
"phpfpm-wallabag.service" "phpfpm-wallabag.service"
"gitea.service" "gitea.service"
"dendrite.service" "dendrite.service"
"mautrix-telegram.service" "matrix-as-telegram.service"
"matrix-as-facebook.service"
"matrix-as-signal.service"
"nginx.service" "nginx.service"
"dnsmasq.service" "dnsmasq.service"
"podman-openbooks.service" "podman-openbooks.service"

View File

@ -11,4 +11,5 @@ in {
"git.age".publicKeys = [ zion ]; "git.age".publicKeys = [ zion ];
"dendrite.age".publicKeys = [ zion ]; "dendrite.age".publicKeys = [ zion ];
"dendrite-postgres.age".publicKeys = [ zion ]; "dendrite-postgres.age".publicKeys = [ zion ];
"telegram.age".publicKeys = [ zion ];
} }

7
secrets/telegram.age Normal file
View File

@ -0,0 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 iUaRGg rS8ZNqVEL6bTwP8tQZBGhBGrnO7+kYaccfF4L4BOvD8
YdRIGI3ZcCj2ChmG9EEWoeaJjFGpuAdynVOX9AmlNPQ
-> _"qP0Q-grease m!90McQ,
huj0QunueHMxUR/1rkmH
--- 37HKb796va0m2v12DIa8edo4s35P3MSNY2WDNjagawo
§Ë-þŠÍ˜ÊŒ·Ã˜×C'{ñ(*S€Gs¬çÙ8«Öü¥³W!¶´ S^o<¡yóI¦X,¼=^ö )Ç<>õþFaÕÉ̸_…?†Ø6Xg^l»l*#<23>oQOZ