infrastructure/machines/storage01/forgejo-runners.nix
Tom Hubrecht b3b21d1f96
Some checks failed
build configuration / build_compute01 (push) Successful in 1m27s
build configuration / build_storage01 (push) Successful in 1m33s
build configuration / build_vault01 (push) Successful in 2m0s
build configuration / build_web02 (push) Successful in 1m26s
build configuration / build_geo01 (push) Successful in 1m19s
build configuration / build_rescue01 (push) Successful in 1m29s
build configuration / build_geo02 (push) Successful in 1m13s
lint / check (push) Successful in 35s
build configuration / build_web01 (push) Successful in 2m4s
build configuration / build_bridge01 (push) Successful in 1m18s
build configuration / push_to_cache_geo01 (push) Successful in 1m38s
build configuration / push_to_cache_compute01 (push) Successful in 2m10s
build configuration / push_to_cache_web02 (push) Successful in 1m43s
build configuration / push_to_cache_storage01 (push) Successful in 2m15s
build configuration / push_to_cache_geo02 (push) Successful in 1m20s
build configuration / push_to_cache_rescue01 (push) Successful in 1m38s
build configuration / push_to_cache_bridge01 (push) Failing after 3m24s
build configuration / push_to_cache_web01 (push) Successful in 3m31s
feat(forgejo-runners): Switch to patched version of colmena
This allows to evaluate bridge01 in the CI
2024-08-14 18:56:11 +02:00

91 lines
1.6 KiB
Nix

{
config,
pkgs,
nixpkgs,
sources,
...
}:
let
url = "https://git.dgnum.eu";
mkRunner =
{
labels,
name,
token,
}:
{
enable = true;
inherit
name
labels
token
url
;
settings.container = {
network = "host";
options = "--cpus=4";
};
};
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
in
{
services.forgejo-nix-runners = {
enable = true;
inherit url;
storePath = "/data/slow/nix";
tokenFile = config.age.secrets."forgejo_runners-token_file".path;
dependencies = [
nix-pkgs.colmena
pkgs.npins
pkgs.tea
nixpkgs.unstable.nixfmt-rfc-style
];
containerOptions = [ "--cpus=4" ];
nbRunners = 6;
};
services.gitea-actions-runner.instances = builtins.mapAttrs (_: mkRunner) {
runner01 = {
token = "qT9nZXKgLcb3fWOj7VTj3S58raiCWwF0weuIIKlY";
name = "storage01 [debian]";
labels = [ "debian-latest:docker://node:20-bookworm" ];
};
runner02 = {
token = "m0rUDBxxkMb6xLTmPFwIieHswJFROqPFByPlT3V9";
name = "storage01 [debian]";
labels = [ "debian-latest:docker://node:20-bookworm" ];
};
};
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings = {
dns_enable = true;
ipv6_enabled = true;
};
};
containers.storage.settings = {
storage = {
driver = "overlay";
graphroot = "/data/slow/containers/storage";
runroot = "/run/containers/storage";
};
};
};
}