diff --git a/modules/configuration.nix b/modules/configuration.nix index e107093..d06013a 100644 --- a/modules/configuration.nix +++ b/modules/configuration.nix @@ -301,14 +301,14 @@ in }; services.postgresql.initialScript = pkgs.writeText "begin-init.sql" '' - CREATE ROLE "ncusr" WITH LOGIN PASSWORD '${age.secrets.nextclouddb.file}'; + CREATE ROLE "ncusr" WITH LOGIN PASSWORD '${personalization.age.secrets.nextclouddb.file}'; CREATE DATABASE "nextclouddb" WITH OWNER "ncusr" TEMPLATE template0 LC_COLLATE = "C" LC_CTYPE = "C"; - CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD '${age.secrets.matrixdb.file}'; + CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD '${personalization.age.secrets.matrixdb.file}'; CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse" TEMPLATE template0 LC_COLLATE = "C" @@ -319,7 +319,7 @@ in services.mysql.initialScript = pkgs.writeText "wordpress-init.sql" '' CREATE DATABASE wordpressdb; - GRANT ALL ON *.* TO 'wpusr'@'localhost' IDENTIFIED BY '${age.secrets.wordpressdb.file}'; + GRANT ALL ON *.* TO 'wpusr'@'localhost' IDENTIFIED BY '${personalization.age.secrets.wordpressdb.file}'; FLUSH PRIVILEGES; '' ; diff --git a/modules/coturn.nix b/modules/coturn.nix index 9e55287..095af97 100644 --- a/modules/coturn.nix +++ b/modules/coturn.nix @@ -35,7 +35,7 @@ let services.coturn = { enable = true; use-auth-secret = true; - static-auth-secret = "${age.secrets.turn.file}"; + static-auth-secret = "${personalization.age.secrets.turn.file}"; realm = personalization.matrix_url; cert = "/var/lib/coturn/${personalization.matrix_url}.crt.pem"; pkey = "/var/lib/coturn/${personalization.matrix_url}.key.pem"; diff --git a/modules/synapse.nix b/modules/synapse.nix index 9bcb20c..109708e 100644 --- a/modules/synapse.nix +++ b/modules/synapse.nix @@ -43,7 +43,7 @@ in "ff00::/8" ]; url_preview_ip_ranger_whitelist = [ "127.0.0.1" ]; - turn_shared_secret = "${age.secrets.turn.file}"; + turn_shared_secret = "${personalization.age.secrets.turn.file}"; turn_uris = [ "turn:${personalization.matrix_url}:5349?transport=udp" "turn:${personalization.matrix_url}:5349?transport=tcp" @@ -52,7 +52,7 @@ in ]; presence.enabled = true; enable_registration = false; - registration_shared_secret = "${age.secrets.matrix_reg_secret.file}"; + registration_shared_secret = "${personalization.age.secrets.matrix_reg_secret.file}"; listeners = [ { port = 8008;