This commit is contained in:
Ellie 2026-02-15 20:28:12 -08:00
parent 50007f068e
commit db5af11266
5 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ pkgs, config, ... }:
{
sops.secrets."forgejo/runner_token" = {
sopsFile = ./secrets/forgejo.yaml;
};
sops.templates."forgejo-runner-token".content = ''
TOKEN=${config.sops.placeholder."forgejo/runner_token"}
'';
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "home-server";
url = "https://forgejo.ellie.town";
tokenFile = config.sops.templates."forgejo-runner-token".path;
labels = [
"native:host"
];
hostPackages = with pkgs; [
bash
coreutils
git
nix
curl
nodejs
];
};
};
}