modules(drone-exec-runner): use properly lib.any
This commit is contained in:
parent
a0be07dbf3
commit
420773149e
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ in
|
||||||
default = {};
|
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}") ({
|
systemd.services = mapAttrs' (runnerName: cfg: nameValuePair ("drone-exec-runner-${runnerName}") ({
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue