Small cleanup
This commit is contained in:
parent
74a4cd25d1
commit
35769740bf
|
@ -40,15 +40,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
enableMainSynapse = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = ''
|
|
||||||
Enable the main synapse process.
|
|
||||||
Useful if running workers on separate computers.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
mainLogConfig = lib.mkOption {
|
mainLogConfig = lib.mkOption {
|
||||||
type = lib.types.lines;
|
type = lib.types.lines;
|
||||||
description = "A yaml python logging config file";
|
description = "A yaml python logging config file";
|
||||||
|
@ -249,12 +240,6 @@ in
|
||||||
example = "matrix.org";
|
example = "matrix.org";
|
||||||
};
|
};
|
||||||
|
|
||||||
options.pid_file = lib.mkOption {
|
|
||||||
type = lib.types.path;
|
|
||||||
description = "When running as a daemon, the file to store the pid in";
|
|
||||||
default = "/run/matrix-synapse.pid";
|
|
||||||
};
|
|
||||||
|
|
||||||
options.use_presence = lib.mkOption {
|
options.use_presence = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "disable presence tracking, if you're having perfomance issues this can have a big impact";
|
description = "disable presence tracking, if you're having perfomance issues this can have a big impact";
|
||||||
|
@ -305,8 +290,7 @@ in
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
description = "List of ports that Synapse should listen on, their purpose and their configuration";
|
description = "List of ports that Synapse should listen on, their purpose and their configuration";
|
||||||
default = let
|
default = let enableReplication = lib.lists.any
|
||||||
enableReplication = lib.lists.any
|
|
||||||
(w: !(builtins.elem w.settings.worker_app [ "federationSender" ]))
|
(w: !(builtins.elem w.settings.worker_app [ "federationSender" ]))
|
||||||
cfg.workers.instances;
|
cfg.workers.instances;
|
||||||
in [
|
in [
|
||||||
|
@ -370,7 +354,7 @@ in
|
||||||
options.enable_registration = lib.mkOption {
|
options.enable_registration = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Enable registration for new users";
|
description = "Enable registration for new users";
|
||||||
default = true;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
options.enable_metrics = lib.mkOption {
|
options.enable_metrics = lib.mkOption {
|
||||||
|
@ -417,7 +401,7 @@ in
|
||||||
options.send_federation = lib.mkOption {
|
options.send_federation = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Disables sending of outbound federation transactions on the main process. Set to false if using federation senders";
|
description = "Disables sending of outbound federation transactions on the main process. Set to false if using federation senders";
|
||||||
default = (lib.lists.count (x: true) cfg.settings.federation_sender_instances) == 0;
|
default = cfg.settings.federation_sender_instances == [];
|
||||||
};
|
};
|
||||||
|
|
||||||
options.federation_sender_instances = lib.mkOption {
|
options.federation_sender_instances = lib.mkOption {
|
||||||
|
|
Loading…
Reference in New Issue