···
cfg = config.services.mautrix-signal;
···
serviceDependencies = lib.mkOption {
type = with lib.types; listOf str;
114
-
default = (lib.optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit)
116
+
(lib.optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit)
++ (lib.optional config.services.matrix-conduit.enable "conduit.service");
defaultText = lib.literalExpression ''
(optional config.services.matrix-synapse.enable config.services.matrix-synapse.serviceUnit)
···
# Note: this is defined here to avoid the docs depending on `config`
157
-
services.mautrix-signal.settings.homeserver = optOneOf (with config.services; [
158
-
(lib.mkIf matrix-synapse.enable (mkDefaults {
159
-
domain = matrix-synapse.settings.server_name;
161
-
(lib.mkIf matrix-conduit.enable (mkDefaults {
162
-
domain = matrix-conduit.settings.global.server_name;
163
-
address = "http://localhost:${toString matrix-conduit.settings.global.port}";
159
+
services.mautrix-signal.settings.homeserver = optOneOf (
160
+
with config.services;
162
+
(lib.mkIf matrix-synapse.enable (mkDefaults {
163
+
domain = matrix-synapse.settings.server_name;
165
+
(lib.mkIf matrix-conduit.enable (mkDefaults {
166
+
domain = matrix-conduit.settings.global.server_name;
167
+
address = "http://localhost:${toString matrix-conduit.settings.global.port}";
systemd.services.mautrix-signal = {
description = "mautrix-signal, a Matrix-Signal puppeting bridge.";
···
SystemCallErrorNumber = "EPERM";
SystemCallFilter = [ "@system-service" ];
restartTriggers = [ settingsFileUnsubstituted ];