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 <