nix-cache01: add actions runner
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
This commit is contained in:
43
services/actions-runner/default.nix
Normal file
43
services/actions-runner/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ pkgs, config }:
|
||||
{
|
||||
sops.secrets."cache-secret" = {
|
||||
sopsFile = ../../secrets/nix-cache01/actions_token_1;
|
||||
format = "binary";
|
||||
};
|
||||
|
||||
services.gitea-actions-runner.instances = {
|
||||
enable = true;
|
||||
tokenFile = config.sops.secrets.cache-secret.path;
|
||||
name = "actions1.home.2rjus.net";
|
||||
settings = {
|
||||
log = {
|
||||
level = "info";
|
||||
};
|
||||
|
||||
runner = {
|
||||
file = ".runner";
|
||||
capacity = 4;
|
||||
timeout = "2h";
|
||||
shutdown_timeout = "10m";
|
||||
insecure = false;
|
||||
fetch_timeout = "10s";
|
||||
fetch_interval = "30s";
|
||||
};
|
||||
|
||||
cache = {
|
||||
enabled = true;
|
||||
};
|
||||
|
||||
container = {
|
||||
privileged = false;
|
||||
};
|
||||
};
|
||||
|
||||
labels = [
|
||||
"homelab"
|
||||
"ubuntu-latest"
|
||||
];
|
||||
|
||||
url = "https://git.t-juice.club";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user