From fda764517a646e739adac26cdde17050925e6ec7 Mon Sep 17 00:00:00 2001 From: chloe Date: Fri, 3 Oct 2025 11:35:20 +0200 Subject: [PATCH] added runner config --- hosts/forgejo-runner/configuration.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hosts/forgejo-runner/configuration.nix diff --git a/hosts/forgejo-runner/configuration.nix b/hosts/forgejo-runner/configuration.nix new file mode 100644 index 0000000..00f1360 --- /dev/null +++ b/hosts/forgejo-runner/configuration.nix @@ -0,0 +1,22 @@ +{ pkgs, config }: +{ + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances.default = { + enable = true; + name = "monolith"; + url = "https://git.rougebordeaux.xyz"; + # Obtaining the path to the runner token file may differ + # tokenFile should be in format TOKEN=, since it's EnvironmentFile for systemd + tokenFile = config.age.secrets.forgejo-runner-token.path; + labels = [ + "ubuntu-latest:docker://node:22-bullseye" + "ubuntu-22.04:docker://node:22-bullseye" + "ubuntu-20.04:docker://node:22-bullseye" + "ubuntu-18.04:docker://node:16-buster" + ## optionally provide native execution on the host: + # "native:host" + ]; + }; + }; +}