From d77f3e4873540c5ae1c8fde673bb580ca0644598 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Mon, 16 Dec 2024 20:49:00 -0800 Subject: [PATCH] updated synape personalizatoin configuration --- configuration.nix | 13 ++++++++++++- modules/synapse.nix | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index be28d42..85fb107 100755 --- a/configuration.nix +++ b/configuration.nix @@ -292,7 +292,18 @@ in }; }; - +###### AGENIX ###### + age.identityPaths = [ "/root/.ssh/agenix/agenix-secret-keys" ]; + + age.secrets.matrix_reg_secret = { + + file = /var/lib/agenix-secrets/matrix_reg_secret.age; + mode = "770"; + owner = "matrix-synapse"; + group = "matrix-synapse"; + }; + + ###### CREATE DATABASE (WORDPRESS, MATRIX_SYNAPSE, AND NEXTCLOUD) ####### services.postgresql = { diff --git a/modules/synapse.nix b/modules/synapse.nix index 7adfdf5..d633653 100755 --- a/modules/synapse.nix +++ b/modules/synapse.nix @@ -50,7 +50,7 @@ in ]; presence.enabled = true; enable_registration = false; - registration_shared_secret = services.matrix-synapse.extraConfigFiles = /var/lib/secrets/matrix_reg_secret; + registration_shared_secret = config.age.secrets.matrix_reg_secret.path; listeners = [ { port = 8008;