summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/matrix-synapse.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/matrix-synapse.nix b/nixos/modules/services/misc/matrix-synapse.nix
index ae9826968b1..a3ec0ea59f8 100644
--- a/nixos/modules/services/misc/matrix-synapse.nix
+++ b/nixos/modules/services/misc/matrix-synapse.nix
@@ -605,6 +605,7 @@ in {
       } ];
 
     systemd.services.matrix-synapse = {
+      description = "Synapse Matrix homeserver";
       after = [ "network.target" ];
       wantedBy = [ "multi-user.target" ];
       preStart = ''
@@ -620,6 +621,7 @@ in {
         WorkingDirectory = "/var/lib/matrix-synapse";
         PermissionsStartOnly = true;
         ExecStart = "${cfg.package}/bin/homeserver --config-path ${configFile} --keys-directory /var/lib/matrix-synapse";
+        Restart = "on-failure";
       };
     };
   };