From 87d72f6d1525361042e82f42ae275f3093b4fe8a Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 12 Sep 2023 20:57:31 -0700 Subject: [PATCH] Create all necessary dirs --- matrix-module.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/matrix-module.nix b/matrix-module.nix index d4f4db9..11d9424 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -86,7 +86,11 @@ in { systemd = { tmpfiles.rules = let user = config.systemd.services.matrix-synapse.serviceConfig.User; - in [ "d ${cfg.state-directory} 0700 ${user} root - -" ]; + in [ + "d ${cfg.state-directory}/secrets 0700 ${user} root - -" + "d ${cfg.state-directory}/database 0700 ${user} root - -" + "d ${cfg.state-directory}/media 0700 ${user} root - -" + ]; services.matrix-synapse.serviceConfig.ReadWritePaths = [ cfg.state-directory ]; }; @@ -101,7 +105,7 @@ in { dynamic_thumbnails = true; max_upload_size = "100M"; media_store_path = "${cfg.state-directory}/media"; - signing_key_path = "${cfg.state-directory}/signing.key"; + signing_key_path = "${cfg.state-directory}/secrets/signing.key"; listeners = [{ port = cfg.port; bind_addresses = [ "127.0.0.1" "::1" ];