From 7c82a89267bd0408344d9077dba89f8b2ca5eb12 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Tue, 26 Sep 2023 17:57:31 -0400 Subject: [PATCH] Try gitea runners --- nixos-apps/git.ewanick.com.nix | 26 ++++++++++++++++++++++++++ nixos-apps/git.ewanick.com/.gitignore | 1 + 2 files changed, 27 insertions(+) create mode 100644 nixos-apps/git.ewanick.com/.gitignore diff --git a/nixos-apps/git.ewanick.com.nix b/nixos-apps/git.ewanick.com.nix index 404aa5b..5b93564 100644 --- a/nixos-apps/git.ewanick.com.nix +++ b/nixos-apps/git.ewanick.com.nix @@ -1,3 +1,4 @@ +{ pkgs, ... }: let baseUrl = "git.ewanick.com"; in { @@ -13,6 +14,31 @@ in service = { DISABLE_REGISTRATION = true; }; + actions = { + ENABLED = true; + DEFAULT_ACTIONS_URL = "self"; + }; + }; + }; + + services.gitea-actions-runner.instances = { + "first-runner" = { + enable = true; + url = baseUrl; + tokenFile = ./git.ewanick.com/tokenFile; + hostPackages = with pkgs; [ + bash + coreutils + curl + gawk + gitMinimal + gnused + wget + ]; + name = "linode-nixos"; + labels = [ + "native:host" + ]; }; }; diff --git a/nixos-apps/git.ewanick.com/.gitignore b/nixos-apps/git.ewanick.com/.gitignore new file mode 100644 index 0000000..3d9442a --- /dev/null +++ b/nixos-apps/git.ewanick.com/.gitignore @@ -0,0 +1 @@ +tokenFile