···296296 services.matrix-synapse = {
297297 enable = mkEnableOption (lib.mdDoc "matrix.org synapse");
298298299299+ serviceUnit = lib.mkOption {
300300+ type = lib.types.str;
301301+ readOnly = true;
302302+ description = lib.mdDoc ''
303303+ The systemd unit (a service or a target) for other services to depend on if they
304304+ need to be started after matrix-synapse.
305305+306306+ This option is useful as the actual parent unit for all matrix-synapse processes
307307+ changes when configuring workers.
308308+ '';
309309+ };
310310+299311 configFile = mkOption {
300312 type = types.path;
301313 readOnly = true;
···10211033 port = 9093;
10221034 });
1023103510361036+ services.matrix-synapse.serviceUnit = if hasWorkers then "matrix-synapse.target" else "matrix-synapse.service";
10241037 services.matrix-synapse.configFile = configFile;
10251038 services.matrix-synapse.package = wrapped;
10261039