yuki: init forgejo runner

This commit is contained in:
notohh 2023-10-07 17:03:11 -04:00
parent 0fb831b03d
commit ce570b6ed3
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 34 additions and 0 deletions

View file

@ -8,5 +8,6 @@
./dashdot.nix
./jellyfin.nix
./neko.nix
./forgejo-runners.nix
];
}

View file

@ -0,0 +1,33 @@
{
pkgs,
config,
...
}: {
sops.secrets.forgejo-runner-token = {};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.main = {
settings = {
container = {
network = "host";
};
};
enable = true;
name = config.networking.hostName;
url = "https://git.flake.sh";
token = "gdeEbeUTifa1nK7EfRgBmvm6XRdQE1zZzAatBRSC";
labels = [
"debian-latest:docker://node:18-bullseye"
"ubuntu-latest:docker://node:18-bullseye"
#"native:host"
];
hostPackages = with pkgs; [
bash
curl
coreutils
wget
gitMinimal
];
};
};
}