From b3538dbbfd3a0b9287481203eb3231214a6f2562 Mon Sep 17 00:00:00 2001 From: Hayden <22327045+hbjydev@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:36:21 +0100 Subject: [PATCH] GitHub Actions updates (#18) * fix: use instance hostname for actions runner * feat: remove hardcoded runner name completely --- modules/mixins/github-actions/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/mixins/github-actions/default.nix b/modules/mixins/github-actions/default.nix index 45445b9..ac63c7b 100644 --- a/modules/mixins/github-actions/default.nix +++ b/modules/mixins/github-actions/default.nix @@ -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 @@ -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";