summary refs log tree commit diff stats
path: root/system/services
diff options
context:
space:
mode:
Diffstat (limited to 'system/services')
-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 = [
         {