summary refs log tree commit diff stats
path: root/system/secrets
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-24 12:52:57 +0200
committersils <sils@sils.li>2023-07-24 12:52:57 +0200
commit98b152e9c15b56795419abde6e7b1f30def3d3d7 (patch)
tree185aa36d311d86dbcc11b9ac40b842d3609103c2 /system/secrets
parentchore(version): v0.4.0 (diff)
downloadnixos-server-mautrix-telegram.tar.gz
nixos-server-mautrix-telegram.zip
Feat(system): Add initial mautrix-telegram config mautrix-telegram
This won't work and isn't supposed to, in fact this commit is designed
to be squashed or rebased. The config in
system/services/matrix/bridges/mautrix-telegram/default.nix is mainly
copy-pasted from nixos-wiki.
Diffstat (limited to '')
-rw-r--r--system/secrets/default.nix6
-rw-r--r--system/secrets/mautrix-telegram/passwd.tix15
-rw-r--r--system/secrets/secrets.nix5
3 files changed, 26 insertions, 0 deletions
diff --git a/system/secrets/default.nix b/system/secrets/default.nix
index 5cd401c..39f4a65 100644
--- a/system/secrets/default.nix
+++ b/system/secrets/default.nix
@@ -13,6 +13,12 @@
         owner = "matrix-synapse";
         group = "matrix-synapse";
       };
+      mautrix-telegram_environment_file = {
+        file = ./mautrix-telegram/passwd.tix;
+        mode = "700";
+        owner = "mautrix-telegram";
+        group = "mautrix-telegram";
+      };
     };
   };
 }
diff --git a/system/secrets/mautrix-telegram/passwd.tix b/system/secrets/mautrix-telegram/passwd.tix
new file mode 100644
index 0000000..77b49a1
--- /dev/null
+++ b/system/secrets/mautrix-telegram/passwd.tix
@@ -0,0 +1,15 @@
+-----BEGIN AGE ENCRYPTED FILE-----
+YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBPUFpzMlY0alllN3hhZkNS
+c3BWcmRzMXpBWUlFRW1iZS9kUk1yTDJIU1Q0CnlBSXRXODIyTmRkZlRsSFlKWnFz
+c3VpNVV5Z08wUjR1aXBTTEJaTFNPR00KLT4gWDI1NTE5IHhZUHFidmw2TU5Mamhx
+SWJxYm5NUGdzUWE1STFBZ3pvUXE0QzR0UXlNWFkKMW83djRpaXpCTk85Rm9XYXRO
+VDFSSGJ1MXdRNkp3enRiYVVZZFFxOWttNAotPiBzc2gtZWQyNTUxOSBPRDhUNGcg
+TTlpSER5MDNnWWE1QXJUYnp0aDFQVCtKQkFNeDNNTm9qNER5OFVweUNHdworM3JH
+SXBjYXZnWHdlTUdqNElobTRIaWVmWGVPQUlDc0xweUhFZ3FwcHI4Ci0+ICxpYW5I
+LWdyZWFzZSAkPSA5ZT1+VTA9PCB6NncKOWpiN0JzNGh2Y285V0c0Ci0tLSBsRXZq
+ZGJ3MGRDMjkxem90Z0RBRTRFOVBpazI3V215aGh3M29JYUMwWHpzCiqyW8IgNn41
+7ysY8UKDiPWeQ2v+1agnhcGTyMDk3ZGYjVnpkeMea+jA8XKVDpCr3J4nIOJn85uE
+AqIl7H7ZH2QH+3niN9iaophP3vIhaOXB/5XdFw7z/593oEx3jbrqsw722v7BRVm8
+hkOaBHR9TbvjIW6PkI28pPbA//B4Yp8GDdqqsO/3gGdDS/APb3cKbgn1ba5t064B
+K1aN+sACPPZNBkQ29vcNngziCtln/FDEBkHOaLnqSD1ZuU5n
+-----END AGE ENCRYPTED FILE-----
diff --git a/system/secrets/secrets.nix b/system/secrets/secrets.nix
index 2fd4132..5f23972 100644
--- a/system/secrets/secrets.nix
+++ b/system/secrets/secrets.nix
@@ -14,4 +14,9 @@ in {
     sils
     server1
   ];
+  "mautrix-telegram/passwd.tix".publicKeys = [
+    soispha
+    sils
+    server1
+  ];
 }