1
0
Fork 0

matrix: Re-enable Telegram bridge

This commit is contained in:
Daniel Kempkens 2022-11-27 19:51:19 +01:00
parent 9d9f43c7c3
commit c4f7afe0e3
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
9 changed files with 115 additions and 137 deletions

View file

@ -0,0 +1,35 @@
{
systemd.tmpfiles.rules = [
"d /etc/container-matrix/telegram 0775 1337 1337"
"d /etc/container-matrix/signald 0775 0 0"
"d /etc/container-matrix/signal 0775 1337 1337"
"d /etc/container-matrix/whatsapp 0775 1337 1337"
];
# Matrix: Telegram
environment.etc."container-matrix/telegram/config.yaml" = {
source = ../../secret/container/matrix/config/telegram.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
# Matrix: Signal
environment.etc."container-matrix/signal/config.yaml" = {
source = ../../secret/container/matrix/config/signal.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
# Matrix: WhatsApp
environment.etc."container-matrix/whatsapp/config.yaml" = {
source = ../../secret/container/matrix/config/whatsapp.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
}

View file

@ -0,0 +1,80 @@
let
secret = import ../../secret/container/matrix;
custom-config = import ./config.nix { inherit secret; };
in
{
virtualisation.arion.projects.matrix.settings = {
services = {
matrix-telegram = {
service = {
image = "dock.mau.dev/mautrix/telegram:latest";
container_name = "mautrix-telegram";
restart = "unless-stopped";
ports = [ "29317:29317" ];
volumes = [
"/etc/container-matrix/telegram:/data"
];
labels = {
"com.centurylinklabs.watchtower.enable" = "true";
};
};
};
# signald = {
# service = {
# image = "signald/signald:latest";
# container_name = "signald";
# restart = "unless-stopped";
# depends_on = [ "ipv6nat" ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/signald:/signald"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# matrix-signal = {
# service = {
# image = "dock.mau.dev/mautrix/signal:latest";
# container_name = "mautrix-signal";
# restart = "unless-stopped";
# depends_on = [
# "ipv6nat"
# "synapse"
# "signald"
# ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/signal:/data"
# "/etc/container-matrix/signald:/signald"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# matrix-whatsapp = {
# service = {
# image = "dock.mau.dev/mautrix/whatsapp:latest";
# container_name = "mautrix-whatsapp";
# restart = "unless-stopped";
# depends_on = [
# "ipv6nat"
# "synapse"
# ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/whatsapp:/data"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
};
};
} // custom-config

View file

@ -4,11 +4,6 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d /etc/container-webserver/weewx 0755 421 421" "d /etc/container-webserver/weewx 0755 421 421"
"d /etc/container-webserver/weewx/html 0755 421 421" "d /etc/container-webserver/weewx/html 0755 421 421"
"d /etc/container-matrix/synapse 0755 991 991"
"d /etc/container-matrix/telegram 0775 1337 1337"
"d /etc/container-matrix/signald 0775 0 0"
"d /etc/container-matrix/signal 0775 1337 1337"
"d /etc/container-matrix/whatsapp 0775 1337 1337"
]; ];
# mosquitto # mosquitto
@ -35,40 +30,4 @@
uid = 421; uid = 421;
gid = 421; gid = 421;
}; };
# Matrix: Synapse
environment.etc."container-matrix/synapse/homeserver.yaml" = {
source = ../../secret/container/webserver/config/matrix/homeserver.yaml;
mode = "0640";
uid = 991;
gid = 991;
};
# Matrix: Telegram
environment.etc."container-matrix/telegram/config.yaml" = {
source = ../../secret/container/webserver/config/matrix/telegram.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
# Matrix: Signal
environment.etc."container-matrix/signal/config.yaml" = {
source = ../../secret/container/webserver/config/matrix/signal.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
# Matrix: WhatsApp
environment.etc."container-matrix/whatsapp/config.yaml" = {
source = ../../secret/container/webserver/config/matrix/whatsapp.yaml;
mode = "0640";
uid = 1337;
gid = 1337;
};
} }

View file

@ -62,102 +62,6 @@ in
labels = secret.container.webserver.weewx.labels; labels = secret.container.webserver.weewx.labels;
}; };
}; };
# Matrix
# synapse = {
# service = {
# image = "matrixdotorg/synapse:latest";
# container_name = "synapse";
# restart = "unless-stopped";
# depends_on = [ "ipv6nat" ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/synapse:/data"
# "/etc/container-matrix/telegram:/bridge-data/telegram:ro"
# "/etc/container-matrix/signal:/bridge-data/signal:ro"
# "/etc/container-matrix/whatsapp:/bridge-data/whatsapp:ro"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# matrix-telegram = {
# service = {
# image = "dock.mau.dev/mautrix/telegram:latest";
# container_name = "mautrix-telegram";
# restart = "unless-stopped";
# depends_on = [
# "ipv6nat"
# "synapse"
# ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/telegram:/data"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# signald = {
# service = {
# image = "signald/signald:latest";
# container_name = "signald";
# restart = "unless-stopped";
# depends_on = [ "ipv6nat" ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/signald:/signald"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# matrix-signal = {
# service = {
# image = "dock.mau.dev/mautrix/signal:latest";
# container_name = "mautrix-signal";
# restart = "unless-stopped";
# depends_on = [
# "ipv6nat"
# "synapse"
# "signald"
# ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/signal:/data"
# "/etc/container-matrix/signald:/signald"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
#
# matrix-whatsapp = {
# service = {
# image = "dock.mau.dev/mautrix/whatsapp:latest";
# container_name = "mautrix-whatsapp";
# restart = "unless-stopped";
# depends_on = [
# "ipv6nat"
# "synapse"
# ];
# networks = [ "webserver" ];
# volumes = [
# "/etc/container-matrix/whatsapp:/data"
# ];
# labels = {
# "com.centurylinklabs.watchtower.enable" = "true";
# };
# };
# };
}; };
}; };
} // custom-config } // custom-config

Binary file not shown.