configuration.nix/hosts/rico2/services/apps/forgejo-actions-runner.nix

27 lines
751 B
Nix
Raw Normal View History

{ pkgs, config, ... }: {
sops.secrets = {
"forgejo/runner_registration_token_file" = {
mode = "400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
};
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances = {
2024-10-31 10:57:42 +05:30
aarch64-runner = {
enable = true;
2024-10-31 10:57:42 +05:30
name = "aarch64-runner";
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"
];
tokenFile = config.sops.secrets."forgejo/runner_registration_token_file".path;
url = "https://forge.acomputer.lol";
};
};
};
}