feat(storage01): Deploy a forgejo runner

This commit is contained in:
Tom Hubrecht 2023-12-04 20:55:41 +01:00
parent bd598dfdb0
commit ab694c03b6
2 changed files with 40 additions and 0 deletions

View file

@ -11,6 +11,7 @@ lib.extra.mkConfig {
"atticd" "atticd"
"forgejo" "forgejo"
"garage" "garage"
"gitea-actions-runner"
"netbird" "netbird"
"peertube" "peertube"
]; ];

View file

@ -0,0 +1,39 @@
{ pkgs, ... }:
let url = "https://git.dgnum.eu";
in {
boot.kernelParams = [
"cgroup_enable=cpu"
"cgroup_enable=cpuset"
"cgroup_enable=memory"
"cgroup_memory=1"
];
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances = {
runner01 = {
enable = true;
inherit url;
token = "qT9nZXKgLcb3fWOj7VTj3S58raiCWwF0weuIIKlY";
name = "storage01 [debian]";
labels = [ "debian-latest:docker://node:20-bookworm" ];
settings = { container.network = "host"; };
};
};
};
virtualisation.podman = {
enable = true;
defaultNetwork.settings = {
dns_enable = true;
ipv6_enabled = true;
};
};
}