mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-20 08:29:20 +03:00
parent
90a3274d58
commit
588b1f8df6
2 changed files with 12 additions and 2 deletions
|
@ -19,7 +19,9 @@ with lib;
|
|||
])
|
||||
);
|
||||
|
||||
config.systemd.services = flip mapAttrs' config.services.github-runners (name: cfg:
|
||||
config.systemd.services =
|
||||
let enabledRunners = filterAttrs (_: cfg: cfg.enable) config.services.github-runners;
|
||||
in (flip mapAttrs' enabledRunners (name: cfg:
|
||||
let
|
||||
svcName = "github-runner-${name}";
|
||||
systemdDir = "github-runner/${name}";
|
||||
|
@ -296,5 +298,5 @@ with lib;
|
|||
cfg.serviceOverrides
|
||||
];
|
||||
}
|
||||
);
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue