Small cleanup

This commit is contained in:
Daniel Lovbrotte Olsen 2022-10-20 23:56:34 +02:00
parent 74a4cd25d1
commit 35769740bf
1 changed files with 5 additions and 21 deletions

View File

@ -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 {
type = lib.types.lines;
description = "A yaml python logging config file";
@ -249,12 +240,6 @@ in
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 {
type = lib.types.bool;
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";
default = let
enableReplication = lib.lists.any
default = let enableReplication = lib.lists.any
(w: !(builtins.elem w.settings.worker_app [ "federationSender" ]))
cfg.workers.instances;
in [
@ -370,7 +354,7 @@ in
options.enable_registration = lib.mkOption {
type = lib.types.bool;
description = "Enable registration for new users";
default = true;
default = false;
};
options.enable_metrics = lib.mkOption {
@ -417,7 +401,7 @@ in
options.send_federation = lib.mkOption {
type = lib.types.bool;
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 {