summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-22 18:40:57 +0200
committersils <sils@sils.li>2023-07-22 18:40:57 +0200
commit14b09a3ac23616efe1ae755e2deb876c3fc1aade (patch)
tree1d30bfe112aab4e9005a649e561cc95e0a5ae28a
parentFeat(system/secrets): Add matrix-synapse_registration_shared_secret (diff)
downloadnixos-server-14b09a3ac23616efe1ae755e2deb876c3fc1aade.tar.gz
nixos-server-14b09a3ac23616efe1ae755e2deb876c3fc1aade.zip
Fix(system/services/matrix): Change registration_shared_secret_path to
age secret
-rw-r--r--system/services/matrix/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/services/matrix/default.nix b/system/services/matrix/default.nix
index fb0b3d9..62345a7 100644
--- a/system/services/matrix/default.nix
+++ b/system/services/matrix/default.nix
@@ -1,4 +1,8 @@
-{pkgs, ...}: let
+{
+  config,
+  pkgs,
+  ...
+}: let
   fqdn = "matrix.vhack.eu";
   clientConfig."m.homeserver".base_url = "https://${fqdn}";
   serverConfig."m.server" = "${fqdn}:443";
@@ -54,7 +58,7 @@ in {
     configFile = "/etc/matrix/matrix.conf";
     settings = {
       media_store_path = "/var/lib/matrix/media_store";
-      registration_shared_secret_path = "/run/registration_shared_secret";
+      registration_shared_secret_path = "${config.age.secrets.matrix-synapse_registration_shared_secret.path}";
       server_name = "vhack.eu";
       listeners = [
         {