Skip to content

Commit

Permalink
runner: fix user
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Oct 14, 2024
1 parent c38e284 commit 590ea42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/github-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ in
tokenFile = cfg.tokenFile;
# Replace an existing runner with the same name, instead of erroring out.
replace = true;
user = if pkgs.stdenv.isLinux then "_github-runner" else null;
extraPackages =
with (if cfg.enableRosetta then pkgs.pkgsx86_64Darwin else pkgs);
[
Expand Down Expand Up @@ -147,7 +146,7 @@ in
// lib.optionalAttrs cfg.enableRosetta {
package = "/usr/bin/arch -x86_64 " + pkgs.pkgsx86_64Darwin.github-runner;
}
// lib.optionalAttrs pkgs.stdenv.isLinux { user = name i; }
// lib.optionalAttrs pkgs.stdenv.isLinux { user = "_github_runner"; }
// cfg.extraService
);
})
Expand Down

0 comments on commit 590ea42

Please sign in to comment.