treewide: reformat
This commit is contained in:
parent
8d975c07fa
commit
4eb71e5baf
8 changed files with 63 additions and 73 deletions
|
@ -22,22 +22,20 @@ let
|
|||
services.github-runners = lib.pipe cfg.runners [
|
||||
(lib.mapAttrsToList (
|
||||
name: cfg:
|
||||
lib.genList
|
||||
(
|
||||
i:
|
||||
lib.nameValuePair "${name}-${toString i}" {
|
||||
enable = true;
|
||||
tokenFile = config.age.secrets.github-token.path;
|
||||
inherit (cfg) url;
|
||||
name = "${cfg.name}-${toString i}";
|
||||
user = github-runner-user;
|
||||
serviceOverrides = {
|
||||
DynamicUser = false;
|
||||
};
|
||||
extraLabels = [ "nix" ];
|
||||
}
|
||||
)
|
||||
cfg.instances
|
||||
lib.genList (
|
||||
i:
|
||||
lib.nameValuePair "${name}-${toString i}" {
|
||||
enable = true;
|
||||
tokenFile = config.age.secrets.github-token.path;
|
||||
inherit (cfg) url;
|
||||
name = "${cfg.name}-${toString i}";
|
||||
user = github-runner-user;
|
||||
serviceOverrides = {
|
||||
DynamicUser = false;
|
||||
};
|
||||
extraLabels = [ "nix" ];
|
||||
}
|
||||
) cfg.instances
|
||||
))
|
||||
lib.flatten
|
||||
lib.listToAttrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue