From 90b50d4378d2c648dc51052781df7e683f02bbf4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 21 Jun 2024 18:18:05 -0400 Subject: [PATCH] shift config --- nix/module.nix | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index a1ab9d0..8b4546a 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -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") - ]; }