From 041d311bb270d2e1d991950474d258ebe60535ea Mon Sep 17 00:00:00 2001 From: b12f Date: Wed, 30 Oct 2024 18:34:25 +0100 Subject: [PATCH] modules/matrix: rename used config options --- hosts/nachtigall/configuration.nix | 3 --- modules/matrix/default.nix | 10 +++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/hosts/nachtigall/configuration.nix b/hosts/nachtigall/configuration.nix index 8bfba8de..67e1c6d4 100644 --- a/hosts/nachtigall/configuration.nix +++ b/hosts/nachtigall/configuration.nix @@ -63,21 +63,18 @@ # matrix-synapse age.secrets."matrix-synapse-signing-key" = { file = "${flake.self}/secrets/matrix-synapse-signing-key.age"; - path = "/run/agenix/matrix-synapse-signing-key"; mode = "400"; owner = "matrix-synapse"; }; age.secrets."matrix-synapse-secret-config.yaml" = { file = "${flake.self}/secrets/matrix-synapse-secret-config.yaml.age"; - path = "/run/agenix/matrix-synapse-secret-config.yaml"; mode = "400"; owner = "matrix-synapse"; }; age.secrets."matrix-synapse-sliding-sync-secret" = { file = "${flake.self}/secrets/matrix-synapse-sliding-sync-secret.age"; - path = "/run/agenix/matrix-synapse-sliding-sync-secret"; mode = "400"; owner = "matrix-synapse"; }; diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index 0f6963c9..b8c05469 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -217,7 +217,7 @@ in } ]; - signing_key_path = config.pub-solar-os.matrix-synapse.signing_key_path; + signing_key_path = config.pub-solar-os.matrix.synapse.signing_key_path; stream_writers = { }; trusted_key_servers = [ { server_name = "matrix.org"; } ]; @@ -263,12 +263,12 @@ in }; user_ips_max_age = "28d"; - app_service_config_files = config.pub-solar-os.matrix-synapse.app-service-config-files; + app_service_config_files = config.pub-solar-os.matrix.synapse.app-service-config-files; }; withJemalloc = true; - extraConfigFiles = config.pub-solar-os.matrix-synapse.extra-config-files; + extraConfigFiles = config.pub-solar-os.matrix.synapse.extra-config-files; extras = [ "oidc" @@ -327,7 +327,7 @@ in }; services.matrix-sliding-sync = { - enable = config.pub-solar-os.matrix-synapse.sliding-sync.enable; + enable = config.pub-solar-os.matrix.synapse.sliding-sync.enable; settings = { SYNCV3_SERVER = "https://${publicDomain}"; SYNCV3_BINDADDR = "127.0.0.1:8011"; @@ -335,7 +335,7 @@ in # /metrics at this address SYNCV3_PROM = "127.0.0.1:9100"; }; - environmentFile = config.age.secrets."nachtigall-matrix-synapse-sliding-sync-secret".path; + environmentFile = config.age.secrets."matrix-synapse-sliding-sync-secret".path; }; pub-solar-os.backups.restic.matrix-synapse = {