2024-10-29 22:34:48 +05:30
|
|
|
{ pkgs, config, ... }: {
|
|
|
|
sops.secrets = {
|
|
|
|
"forgejo/runner_registration_token_file" = {
|
|
|
|
mode = "400";
|
|
|
|
owner = config.users.users.root.name;
|
|
|
|
group = config.users.users.root.group;
|
|
|
|
};
|
|
|
|
};
|
2024-11-09 20:27:33 +05:30
|
|
|
services.gitea-actions-runner = {
|
2024-10-29 22:34:48 +05:30
|
|
|
package = pkgs.forgejo-runner;
|
|
|
|
instances = {
|
2024-10-31 10:57:42 +05:30
|
|
|
aarch64-runner = {
|
2024-10-29 22:34:48 +05:30
|
|
|
enable = true;
|
2024-10-31 10:57:42 +05:30
|
|
|
name = "aarch64-runner";
|
2024-10-29 22:34:48 +05:30
|
|
|
labels = [
|
2024-10-31 10:57:42 +05:30
|
|
|
"docker:docker://ubuntu:latest"
|
|
|
|
"aarch64-docker:docker://ubuntu:latest"
|
|
|
|
"linux:docker://ubuntu:latest"
|
|
|
|
"aarch64-linux:docker://ubuntu:latest"
|
2024-10-29 22:34:48 +05:30
|
|
|
];
|
|
|
|
tokenFile = config.sops.secrets."forgejo/runner_registration_token_file".path;
|
|
|
|
url = "https://forge.acomputer.lol";
|
2024-11-01 13:55:29 +05:30
|
|
|
settings = {
|
|
|
|
log.level = "info";
|
|
|
|
cache = {
|
2024-11-03 19:37:12 +05:30
|
|
|
enabled = false;
|
2024-11-01 13:55:29 +05:30
|
|
|
};
|
|
|
|
};
|
2024-10-29 22:34:48 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|