forgejo: initial runner configuration

This commit is contained in:
Rouven Seifert 2024-04-11 15:31:31 +02:00 committed by Jonas Gaffke
parent 703002d148
commit 5286041789
2 changed files with 22 additions and 3 deletions

View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances."quitte" = {
enable = true;
labels = [
# provide a debian base with nodejs for actions
"debian-latest:docker://node:18-bullseye"
# fake the ubuntu name, because node provides no ubuntu builds
"ubuntu-latest:docker://node:18-bullseye"
# provide native execution on the host
"native:host"
];
#TODO get a token from git.ifsr.de and use it
# tokenfile = /"dev/null";
};
};
}

View file

@ -4,9 +4,9 @@ let
gitUser = "git";
in
{
# imports = [
# ./actions.nix
# ];
imports = [
./actions.nix
];
sops.secrets.gitea_ldap_search = {
key = "portunus/search-password";
owner = config.services.forgejo.user;