Skip to content

Commit

Permalink
GitHub Actions updates (#18)
Browse files Browse the repository at this point in the history
* fix: use instance hostname for actions runner

* feat: remove hardcoded runner name completely
  • Loading branch information
hbjydev authored Jun 1, 2024
1 parent 7c259a3 commit b3538db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/mixins/github-actions/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# GitHub Actions runner mixin
# In theory, compatible with x86_64-linux and aarch64-linux.
{ pkgs, ... }:
let
name = "altf4llc-${pkgs.stdenv.system}";
in
{
imports = [
../alloy
Expand All @@ -27,11 +24,12 @@ in
group = "github-runner";
extraGroups = [ "docker" ];
isNormalUser = true;
home = "/run/github-runner/${name}";
home = "/run/github-runner/runner";
};

services.github-runners.${name} = {
services.github-runners.runner = {
enable = true;
name = null;
url = "https://github.com/ALT-F4-LLC";
user = "github-runner";
tokenFile = "/run/keys/github-runner";
Expand Down

0 comments on commit b3538db

Please sign in to comment.