nixos/matrix/*: change dependencies on matrix-synapse.service to serviceUnit

+2 -2
nixos/modules/services/matrix/appservice-discord.nix
···
serviceDependencies = mkOption {
type = with types; listOf str;
-
default = optional config.services.matrix-synapse.enable "matrix-synapse.service";
defaultText = literalExpression ''
-
optional config.services.matrix-synapse.enable "matrix-synapse.service"
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service,
···
serviceDependencies = mkOption {
type = with types; listOf str;
+
default = optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
defaultText = literalExpression ''
+
optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service,
+1 -1
nixos/modules/services/matrix/matrix-sliding-sync.nix
···
systemd.services.matrix-sliding-sync = rec {
after =
lib.optional cfg.createDatabase "postgresql.service"
-
++ lib.optional config.services.matrix-synapse.enable "matrix-synapse.service";
wants = after;
wantedBy = [ "multi-user.target" ];
environment = cfg.settings;
···
systemd.services.matrix-sliding-sync = rec {
after =
lib.optional cfg.createDatabase "postgresql.service"
+
++ lib.optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
wants = after;
wantedBy = [ "multi-user.target" ];
environment = cfg.settings;
+1 -1
nixos/modules/services/matrix/mautrix-facebook.nix
···
wantedBy = [ "multi-user.target" ];
wants = [
"network-online.target"
-
] ++ optional config.services.matrix-synapse.enable "matrix-synapse.service"
++ optional cfg.configurePostgresql "postgresql.service";
after = wants;
···
wantedBy = [ "multi-user.target" ];
wants = [
"network-online.target"
+
] ++ optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit
++ optional cfg.configurePostgresql "postgresql.service";
after = wants;
+2 -2
nixos/modules/services/matrix/mautrix-telegram.nix
···
serviceDependencies = mkOption {
type = with types; listOf str;
-
default = optional config.services.matrix-synapse.enable "matrix-synapse.service";
defaultText = literalExpression ''
-
optional config.services.matrix-synapse.enable "matrix-synapse.service"
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.
···
serviceDependencies = mkOption {
type = with types; listOf str;
+
default = optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
defaultText = literalExpression ''
+
optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.
+2 -2
nixos/modules/services/matrix/mautrix-whatsapp.nix
···
serviceDependencies = lib.mkOption {
type = with lib.types; listOf str;
-
default = lib.optional config.services.matrix-synapse.enable "matrix-synapse.service";
defaultText = lib.literalExpression ''
-
optional config.services.matrix-synapse.enable "matrix-synapse.service"
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.
···
serviceDependencies = lib.mkOption {
type = with lib.types; listOf str;
+
default = lib.optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
defaultText = lib.literalExpression ''
+
optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnits
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.
+2 -2
nixos/modules/services/matrix/mx-puppet-discord.nix
···
};
serviceDependencies = mkOption {
type = with types; listOf str;
-
default = optional config.services.matrix-synapse.enable "matrix-synapse.service";
defaultText = literalExpression ''
-
optional config.services.matrix-synapse.enable "matrix-synapse.service"
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.
···
};
serviceDependencies = mkOption {
type = with types; listOf str;
+
default = optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit;
defaultText = literalExpression ''
+
optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit
'';
description = lib.mdDoc ''
List of Systemd services to require and wait for when starting the application service.