26 lines
698 B
Nix
26 lines
698 B
Nix
|
{ 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 = {
|
||
|
runner-arm64 = {
|
||
|
enable = true;
|
||
|
name = "runner-arm64";
|
||
|
labels = [
|
||
|
"debian-stable:docker://debian:stable"
|
||
|
"ubuntu:docker://ubuntu:latest"
|
||
|
"alpine:docker://alpine:latest"
|
||
|
];
|
||
|
tokenFile = config.sops.secrets."forgejo/runner_registration_token_file".path;
|
||
|
url = "https://forge.acomputer.lol";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|