host/asus: add forgejo-runner
This commit is contained in:
parent
acd2857395
commit
0e7a405b61
5 changed files with 37 additions and 0 deletions
.agenix_config.nix
hosts/asus-gl553vd
Binary file not shown.
|
@ -5,6 +5,7 @@
|
||||||
./hardware-configuration
|
./hardware-configuration
|
||||||
./configs
|
./configs
|
||||||
./users
|
./users
|
||||||
|
./services
|
||||||
];
|
];
|
||||||
|
|
||||||
local.yubikey = {
|
local.yubikey = {
|
||||||
|
|
3
hosts/asus-gl553vd/services/default.nix
Normal file
3
hosts/asus-gl553vd/services/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
imports = [ ./forgejo-runners ];
|
||||||
|
}
|
33
hosts/asus-gl553vd/services/forgejo-runners/default.nix
Normal file
33
hosts/asus-gl553vd/services/forgejo-runners/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
NODE_OPTIONS = "--max_old_space_size=8192";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
age.secrets.forgejo-runner-token-asus-docker.file = ./forgejo-runner-token-asus-docker.age;
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
package = pkgs.unstable.forgejo-runner;
|
||||||
|
instances = {
|
||||||
|
asus-gl554vd-docker = {
|
||||||
|
enable = true;
|
||||||
|
name = "asus-gl554vd-docker";
|
||||||
|
url = "https://git.pleshevski.ru";
|
||||||
|
labels = [
|
||||||
|
"docker:docker://node:20-bullseye"
|
||||||
|
"ubuntu-22.04:docker://node:20-bullseye"
|
||||||
|
];
|
||||||
|
tokenFile = config.age.secrets.forgejo-runner-token-asus-docker.path;
|
||||||
|
settings = {
|
||||||
|
runner = {
|
||||||
|
envs = { inherit NODE_OPTIONS; };
|
||||||
|
|
||||||
|
timeout = "1h";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Binary file not shown.
Loading…
Add table
Reference in a new issue