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;