2023-12-06 06:47:34 +01:00
|
|
|
{ pkgs, config, hostname, ... }: {
|
2023-12-06 06:51:24 +01:00
|
|
|
|
2023-12-06 07:14:59 +01:00
|
|
|
# Set up the secret for the password:
|
|
|
|
sops.secrets."services/forgejo_token" = {
|
|
|
|
owner = "root";
|
|
|
|
sopsFile = ../../../secrets/secrets.yaml;
|
|
|
|
};
|
2023-12-06 06:47:34 +01:00
|
|
|
|
2023-12-06 07:15:53 +01:00
|
|
|
services.gitea-actions-runner.package = pkgs.forgejo-actions-runner;
|
2023-12-06 07:14:33 +01:00
|
|
|
services.gitea-actions-runner.instances."${hostname}" = {
|
2023-12-06 06:47:34 +01:00
|
|
|
enable = true;
|
|
|
|
name = "${hostname}";
|
2023-12-13 05:08:29 +01:00
|
|
|
labels = [ "host://-self-hosted" ];
|
2023-12-06 06:47:34 +01:00
|
|
|
url = "https://git.sysctl.io";
|
2023-12-06 06:52:11 +01:00
|
|
|
tokenFile = "/run/secrets/services/forgejo_token";
|
2023-12-06 06:47:34 +01:00
|
|
|
};
|
|
|
|
}
|