only output the plugin copy loop if plugins are enabled

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-20 14:05:39 +01:00
parent d7cebeac87
commit 7d2e9fc0a9
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -2486,9 +2486,11 @@ in
# Update the plugins
mkdir -p plugins
rm -rf plugins/*.jar
${if cfg.plugins == [] then "" else ''
for f in ${builtins.toString cfg.plugins}; do
cp $f plugins
done
''}
'';
serviceConfig = {
Type = "simple";