From 42d615cdb38acdd36aba369de93a0d277c2cb335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 21 Mar 2023 13:43:34 +0200 Subject: [PATCH] enable matrix-synapse --- configuration.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5e81350..7ebbd80 100644 --- a/configuration.nix +++ b/configuration.nix @@ -374,7 +374,7 @@ in { # app_service_config_files matrix-synapse = { - enable = false; + enable = true; settings = { server_name = "jakstys.lt"; admin_contact = "motiejus@jakstys.lt"; @@ -531,6 +531,10 @@ in { options = "--delete-older-than 14d"; }; + systemd.tmpfiles.rules = [ + "d /run/matrix-synapse 0700 matrix-synapse matrix-synapse -" + ]; + systemd.services = { "make-snapshot-dirs" = let vals = builtins.attrValues backup_paths; @@ -562,23 +566,23 @@ in { ]; }; - matrix-synapse = { - preStart = '' - umask 077 - ln -sf ''${CREDENTIALS_DIRECTORY}/jakstys.lt.signing.key /run/matrix-synapse/jakstys.lt.signing.key - cat > /run/matrix-synapse/secrets.yaml < /run/matrix-synapse/secrets.yaml <