host/home: add forgejo-runner
This commit is contained in:
parent
407f6afcd4
commit
d0b2785350
5 changed files with 35 additions and 2 deletions
Binary file not shown.
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration
|
||||
./configs
|
||||
./users
|
||||
./forgejo-runners
|
||||
];
|
||||
|
||||
################################################################################
|
||||
|
|
33
hosts/home/forgejo-runners/default.nix
Normal file
33
hosts/home/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-home-docker.file = ./forgejo-runner-token-home-docker.age;
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.unstable.forgejo-runner;
|
||||
instances = {
|
||||
home-docker = {
|
||||
enable = true;
|
||||
name = "home-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-home-docker.path;
|
||||
settings = {
|
||||
runner = {
|
||||
envs = { inherit NODE_OPTIONS; };
|
||||
|
||||
timeout = "1h";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
BIN
hosts/home/forgejo-runners/forgejo-runner-token-home-docker.age
Normal file
BIN
hosts/home/forgejo-runners/forgejo-runner-token-home-docker.age
Normal file
Binary file not shown.
|
@ -41,8 +41,7 @@ in
|
|||
GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;
|
||||
};
|
||||
runtimePackages = with pkgs.unstable; [
|
||||
nodePackages.pnpm
|
||||
nodePackages.npm
|
||||
pnpm
|
||||
python312
|
||||
poetry
|
||||
gnumake
|
||||
|
|
Loading…
Add table
Reference in a new issue