From f505e55b6b436e512ffa871d7771f6381e0b1c6f Mon Sep 17 00:00:00 2001 From: Kabbone Date: Thu, 29 Dec 2022 13:42:49 +0100 Subject: [PATCH] services: matrix mautrix-telegram add registration --- modules/services/server/matrix.nix | 34 ++++++++++-------- secrets/secrets.nix | 1 + secrets/services/matrix/mautrix-telegram.age | Bin 1485 -> 1721 bytes .../services/matrix/telegram-registration.age | Bin 0 -> 1797 bytes 4 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 secrets/services/matrix/telegram-registration.age diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix index 8e289ce..e29b72f 100644 --- a/modules/services/server/matrix.nix +++ b/modules/services/server/matrix.nix @@ -70,12 +70,12 @@ in { ]; } ]; + app_service_config_files = [ +# "/var/lib/matrix-synapse/whatsapp-registration.yaml" + config.age.secrets."services/matrix/telegram-registration.yml".path; +# "/var/lib/matrix-synapse/signal-registration.yaml" + ]; }; -# app_service_config_files = [ -# "/var/lib/matrix-synapse/whatsapp-registration.yaml" -# "/var/lib/matrix-synapse/telegram-registration.yaml" -# "/var/lib/matrix-synapse/signal-registration.yaml" -# ]; extraConfigFiles = [ config.age.secrets."services/matrix/synapse.yml".path ]; @@ -85,6 +85,10 @@ in { file = ../../../secrets/services/matrix/synapse.age; owner = "matrix-synapse"; }; + age.secrets."services/matrix/telegram-registration.yml" = { + file = ../../../secrets/services/matrix/telegram-registration.age; + owner = "matrix-synapse"; + }; systemd.services = { matrix-synapse = { @@ -94,30 +98,30 @@ in { users = { users = { - mautrix_whatsapp = { + mautrix-whatsapp = { uid = 3001; - group = "mautrix_whatsapp"; + group = "mautrix-whatsapp"; isSystemUser = true; }; - mautrix_telegram = { + mautrix-telegram = { uid = 3002; - group = "mautrix_telegram"; + group = "mautrix-telegram"; isSystemUser = true; }; - mautrix_signal = { + mautrix-signal = { uid = 3003; - group = "mautrix_signal"; + group = "mautrix-signal"; isSystemUser = true; }; }; groups = { - mautrix_whatsapp = { + mautrix-whatsapp = { gid = 3001; }; - mautrix_telegram = { + mautrix-telegram = { gid = 3002; }; - mautrix_signal = { + mautrix-signal = { gid = 3003; }; }; @@ -169,7 +173,7 @@ in { age.secrets."services/matrix/mautrix-telegram.env" = { file = ../../../secrets/services/matrix/mautrix-telegram.age; - owner = "mautrix-telegram"; + owner = "mautrix_telegram"; }; } diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 8a3601c..2b9565c 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -35,6 +35,7 @@ in "services/coturn/static-auth.age".publicKeys = servers ++ users; "services/matrix/synapse.age".publicKeys = servers ++ users; "services/matrix/mautrix-telegram.age".publicKeys = servers ++ users; + "services/matrix/telegram-registration.age".publicKeys = servers ++ users; "services/nextcloud/adminpassFile.age".publicKeys = servers ++ users; "services/nextcloud/dbpassFile.age".publicKeys = servers ++ users; } diff --git a/secrets/services/matrix/mautrix-telegram.age b/secrets/services/matrix/mautrix-telegram.age index 7a3f3f02cb9da358d66c4aabc8edabe8bd945df2..e585f3489163fbef404fec6cd03aa0f4ba971ab2 100644 GIT binary patch literal 1721 zcmY+C`;Qa{0mpf$;M$(m;|PHQ>lur6a?HMFXD3u)Z+B*PcXsEsvrj_l%X`vN~^fE;y?`4yqn^0YbKwYETLpxcf zg_u1(`9GU!@xijK;06;&)lj7D@fn~9<%AlLg|b|nRMQIIOh*i&AV(Bl|L;^PFCjR?M^^g@atm8)ey z)e<}sBl;Xx(IOz=q}rWkAnu~HiRh^?LskufEfhm$go7;ttHR|hV9J<4Qx*iF@m4C- zwlp(rBya^gm zLGr4paDl=sgwRWg%W1gzsH7+m;ye zx*-COVL3{#SD>)TcB4vbparTR!$G}2q6Md+-Z z^`9RbZFkIwK=Gh#vM}TYlW~mlojyl;cxqJ-K%M1YJWV7xB zq-ZWhrX>puL9W(mV`?c6;sB5ciFSdiqa0Ugm|bW9gf0~ z(nD#9&uQhNT8oqhUSMo&ESMqqYL)3Hstuqnbirn-*dVGv(#(>+L}x5l&GO*{p}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