services.jenkins.plugins: fix initial case

This commit is contained in:
Mateusz Kowalczyk 2017-05-22 11:44:22 +01:00
parent 777d5ee732
commit cb5cb0bf95

View File

@ -103,7 +103,7 @@ in {
plugins = mkOption {
default = null;
#type = types.nullOr (types.attrsOf types.package);
type = types.nullOr (types.attrsOf types.package);
description = ''
A set of plugins to activate. Note that this will completely
remove and replace any previously installed plugins. If you
@ -175,7 +175,7 @@ in {
(n: v: "cp ${v} ${cfg.home}/plugins/${n}.hpi")
cfg.plugins;
in ''
rm -r ${cfg.home}/plugins
rm -r ${cfg.home}/plugins || true
mkdir -p ${cfg.home}/plugins
${lib.strings.concatStringsSep "\n" pluginCmds}
'';