about summary refs log tree commit diff
path: root/overlays
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-07-25 12:06:32 +0900
committersefidel <contact@sefidel.net>2023-07-25 12:06:32 +0900
commit49948543b5de8973fbef6f30d847180614d2a7c5 (patch)
tree2e919f94f6785fdbe5a16ecb368a27d4382f2c80 /overlays
parent2ba18eb3937c8ffaef2206e7030c357dbb932ee2 (diff)
downloadinfra-49948543b5de8973fbef6f30d847180614d2a7c5.tar.gz
infra-49948543b5de8973fbef6f30d847180614d2a7c5.zip
fix(overlays/sliding-sync): fix start failures
Diffstat (limited to 'overlays')
-rw-r--r--overlays/sliding-sync-module.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/overlays/sliding-sync-module.nix b/overlays/sliding-sync-module.nix
index c9e3f59..8117e2b 100644
--- a/overlays/sliding-sync-module.nix
+++ b/overlays/sliding-sync-module.nix
@@ -57,6 +57,13 @@ in
         If unset does not send OTLP traces.
       '';
     };
+    after = lib.mkOption {
+      type = lib.types.listOf lib.types.str;
+      default = null;
+      description = lib.mdDoc ''
+        The service that should start before the sliding-sync proxy.
+      '';
+    };
   };
 
   config = lib.mkIf cfg.enable {
@@ -64,7 +71,7 @@ in
       description = "MSC3575 Matrix Sliding Sync Proxy";
       after = [
         "network.target"
-      ];
+      ] ++ cfg.after;
       wantedBy = [ "multi-user.target" ];
       serviceConfig = {
         Type = "simple";