Skip to content

Commit

Permalink
shift config
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 21, 2024
1 parent 1e9c28d commit 90b50d4
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,25 @@ let
);
in
{
# Each org gets its own set of runners. There will be at max `num` parallels
# CI builds for this org / host combination.
services.github-runners = lib.mkMerge [
# Example: org runners
# (mkOrgRunners { orgName = "juspay"; num = 10; })
# Example: personal runners
# (mkPersonalRunners { user = "srid"; repo = "emanote"; })
];
options = { };
config = {
# Each org gets its own set of runners. There will be at max `num` parallels
# CI builds for this org / host combination.
services.github-runners = lib.mkMerge [
# Example: org runners
# (mkOrgRunners { orgName = "juspay"; num = 10; })
# Example: personal runners
# (mkPersonalRunners { user = "srid"; repo = "emanote"; })
];

# User (Linux only)
users.users.${user} = lib.mkIf isLinux {
inherit group;
isSystemUser = true;
# User (Linux only)
users.users.${user} = lib.mkIf isLinux {
inherit group;
isSystemUser = true;
};
users.groups.${group} = lib.mkIf isLinux { };
nix.settings.trusted-users = [
(if isLinux then user else "_github-runner")
];
};
users.groups.${group} = lib.mkIf isLinux { };
nix.settings.trusted-users = [
(if isLinux then user else "_github-runner")
];
}

0 comments on commit 90b50d4

Please sign in to comment.