From 98b152e9c15b56795419abde6e7b1f30def3d3d7 Mon Sep 17 00:00:00 2001 From: sils Date: Mon, 24 Jul 2023 12:52:57 +0200 Subject: Feat(system): Add initial mautrix-telegram config 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. --- system/secrets/default.nix | 6 ++++++ system/secrets/mautrix-telegram/passwd.tix | 15 +++++++++++++++ system/secrets/secrets.nix | 5 +++++ 3 files changed, 26 insertions(+) create mode 100644 system/secrets/mautrix-telegram/passwd.tix (limited to 'system/secrets') 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 + ]; } -- cgit 1.4.1