From bb05693c977b4cbc77622e04b3cb96cb74326e8e Mon Sep 17 00:00:00 2001 From: Hayden Young <22327045+hbjydev@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:29:19 +0100 Subject: [PATCH 1/2] fix: use instance hostname for actions runner --- modules/mixins/github-actions/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/mixins/github-actions/default.nix b/modules/mixins/github-actions/default.nix index 45445b9..c71a4dc 100644 --- a/modules/mixins/github-actions/default.nix +++ b/modules/mixins/github-actions/default.nix @@ -32,6 +32,7 @@ in services.github-runners.${name} = { enable = true; + name = null; url = "https://github.com/ALT-F4-LLC"; user = "github-runner"; tokenFile = "/run/keys/github-runner"; From 9d77df7058e07c8245a799b7c80d135d33cc8320 Mon Sep 17 00:00:00 2001 From: Hayden Young <22327045+hbjydev@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:31:14 +0100 Subject: [PATCH 2/2] feat: remove hardcoded runner name completely --- modules/mixins/github-actions/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/mixins/github-actions/default.nix b/modules/mixins/github-actions/default.nix index c71a4dc..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,10 +24,10 @@ 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";