From 18714e43c3185daeed8845165c42d29e48de2ef9 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 12 Sep 2023 16:23:05 -0700 Subject: [PATCH] Ensure directory exists --- matrix-module.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matrix-module.nix b/matrix-module.nix index 9116f09..a9c15fd 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -83,6 +83,10 @@ in { user = config.systemd.services.matrix-synapse.serviceConfig.User; }; + systemd.tmpfiles.rules = + let user = config.systemd.services.matrix-synapse.serviceConfig.User; + in [ "d ${cfg.state-directory} 0700 ${user} root - -" ]; + services = { matrix-synapse = { enable = true;