Add runner for Forgejo actions

This commit is contained in:
Evie Litherland-Smith 2024-07-10 06:04:15 +01:00
parent 105a35c024
commit 52ef397d33

View file

@ -1,4 +1,8 @@
{...}: { {
config,
pkgs,
...
}: {
imports = [./caddy.nix]; imports = [./caddy.nix];
services = { services = {
forgejo = { forgejo = {
@ -16,6 +20,16 @@
service = {DISABLE_REGISTRATION = true;}; service = {DISABLE_REGISTRATION = true;};
}; };
}; };
gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "monolith";
url = config.services.forgejo.settings.server.ROOT_URL;
tokenFile = /var/lib/forgejo/runner_registration_token;
labels = ["native:host"];
};
};
caddy.virtualHosts."git.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3100"; caddy.virtualHosts."git.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3100";
}; };
} }