modules(drone-exec-runner): use properly lib.any

This commit is contained in:
Raito Bezarius 2021-07-26 02:50:51 +02:00
parent a0be07dbf3
commit 420773149e

View file

@ -50,7 +50,7 @@ in
default = {};
};
config = mkIf (any (catAttrs "enable" (attrValues runners))) {
config = mkIf (any (cfg: cfg.enable) (attrValues runners)) {
systemd.services = mapAttrs' (runnerName: cfg: nameValuePair ("drone-exec-runner-${runnerName}") ({
wantedBy = [ "multi-user.target" ];