2023-12-04 20:55:41 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2023-12-12 18:39:09 +01:00
|
|
|
let
|
|
|
|
url = "https://git.dgnum.eu";
|
2023-12-04 20:55:41 +01:00
|
|
|
|
2023-12-12 18:39:09 +01:00
|
|
|
mkRunner = { labels, name, token }: {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
inherit name labels token url;
|
|
|
|
|
|
|
|
settings.container = {
|
|
|
|
network = "host";
|
2023-12-12 19:21:06 +01:00
|
|
|
options = "--cpus=4";
|
2023-12-12 18:39:09 +01:00
|
|
|
};
|
|
|
|
};
|
2023-12-04 20:55:41 +01:00
|
|
|
in {
|
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
|
2023-12-12 18:39:09 +01:00
|
|
|
instances = builtins.mapAttrs (_: mkRunner) {
|
2023-12-04 20:55:41 +01:00
|
|
|
runner01 = {
|
|
|
|
token = "qT9nZXKgLcb3fWOj7VTj3S58raiCWwF0weuIIKlY";
|
|
|
|
name = "storage01 [debian]";
|
|
|
|
|
|
|
|
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
|
|
|
};
|
2023-12-05 13:47:32 +01:00
|
|
|
|
|
|
|
runner02 = {
|
|
|
|
token = "m0rUDBxxkMb6xLTmPFwIieHswJFROqPFByPlT3V9";
|
|
|
|
name = "storage01 [debian]";
|
|
|
|
|
|
|
|
labels = [ "debian-latest:docker://node:20-bookworm" ];
|
|
|
|
};
|
2023-12-04 20:55:41 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.podman = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
defaultNetwork.settings = {
|
|
|
|
dns_enable = true;
|
|
|
|
ipv6_enabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|