nixos/matrix-synapse: clarify that extras are additive

This commit is contained in:
Maximilian Bosch 2023-07-31 18:54:17 +02:00
parent 5bf466dae9
commit 190886c5cc
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A
2 changed files with 5 additions and 1 deletions

View File

@ -212,6 +212,10 @@ in {
Extras will automatically be enabled, when the relevant
configuration sections are present.
Please note that this option is additive: i.e. when adding a new item
to this list, the defaults are still kept. To override the defaults as well,
use `lib.mkForce`.
'';
};

View File

@ -12,7 +12,7 @@
}:
let
extraPackages = lib.concatMap (extra: matrix-synapse-unwrapped.optional-dependencies.${extra}) extras;
extraPackages = lib.concatMap (extra: matrix-synapse-unwrapped.optional-dependencies.${extra}) (lib.unique extras);
pluginsEnv = matrix-synapse-unwrapped.python.buildEnv.override {
extraLibs = plugins;