···7272 The port to listen on for transport traffic.
7373 '';
7474 };
7575+7676+ options."plugins.security.disabled" = lib.mkOption {
7777+ type = lib.types.bool;
7878+ default = true;
7979+ description = lib.mdDoc ''
8080+ Whether to enable the security plugin,
8181+ `plugins.security.ssl.transport.keystore_filepath` or
8282+ `plugins.security.ssl.transport.server.pemcert_filepath` and
8383+ `plugins.security.ssl.transport.client.pemcert_filepath`
8484+ must be set for this plugin to be enabled.
8585+ '';
8686+ };
7587 };
76887789 default = {};
···186198 shopt -s inherit_errexit
187199188200 # Install plugins
201201+202202+ # remove plugins directory if it is empty.
203203+ if [ -z "$(ls -A ${cfg.dataDir}/plugins)" ]; then
204204+ rm -r "${cfg.dataDir}/plugins"
205205+ fi
206206+207207+ ln -sfT "${cfg.package}/plugins" "${cfg.dataDir}/plugins"
189208 ln -sfT ${cfg.package}/lib ${cfg.dataDir}/lib
190209 ln -sfT ${cfg.package}/modules ${cfg.dataDir}/modules
191210