modules(drone-exec-runner): use properly lib.any
This commit is contained in:
parent
a0be07dbf3
commit
420773149e
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue