loptland: forgejo-runner
This commit is contained in:
parent
c863aa7354
commit
c77a411103
2 changed files with 54 additions and 1 deletions
|
|
@ -31,8 +31,9 @@ in
|
|||
base
|
||||
server
|
||||
hydra
|
||||
forgejo
|
||||
factorio-server
|
||||
forgejo
|
||||
forgejo-runner
|
||||
|
||||
# apps
|
||||
|
||||
|
|
|
|||
52
modules/server/forgejo-runner.nix
Normal file
52
modules/server/forgejo-runner.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
flake.modules.nixos.forgejo-runner =
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
sopsFile = ../../secrets/secrets-loptland.yaml;
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
secrets = {
|
||||
"forgejo/runner/token" = {
|
||||
inherit sopsFile;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances = {
|
||||
native = {
|
||||
enable = true;
|
||||
name = "monolith";
|
||||
url = "https://git.christophhollizeck.dev";
|
||||
tokenFile = config.sops.secrets."forgejo/runner/token".path;
|
||||
labels = [
|
||||
"native:host"
|
||||
];
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nodejs
|
||||
wget
|
||||
lix
|
||||
];
|
||||
settings = {
|
||||
log.level = "info";
|
||||
runner = {
|
||||
capacity = 1;
|
||||
timeout = "3h";
|
||||
shutdown_timeout = "5s";
|
||||
fetch_timeout = "10s";
|
||||
fetch_inteval = "5s";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue