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";
|
||||
};
|
||||
}
|
@@ -1,7 +1,7 @@
|
||||
$ORIGIN home.2rjus.net.
|
||||
$TTL 1800
|
||||
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
|
||||
2062 ; serial number
|
||||
2063 ; serial number
|
||||
3600 ; refresh
|
||||
900 ; retry
|
||||
1209600 ; expire
|
||||
@@ -59,6 +59,7 @@ monitoring01 IN A 10.69.13.13
|
||||
jelly01 IN A 10.69.13.14
|
||||
nix-cache01 IN A 10.69.13.15
|
||||
nix-cache IN CNAME nix-cache01
|
||||
actions1 IN CNAME nix-cache01
|
||||
pgdb1 IN A 10.69.13.16
|
||||
nats1 IN A 10.69.13.17
|
||||
auth01 IN A 10.69.13.18
|
||||
|
Reference in New Issue
Block a user