diff --git a/machines/storage01/_configuration.nix b/machines/storage01/_configuration.nix index 2652318..37c2c70 100644 --- a/machines/storage01/_configuration.nix +++ b/machines/storage01/_configuration.nix @@ -11,6 +11,7 @@ lib.extra.mkConfig { "atticd" "forgejo" "garage" + "gitea-actions-runner" "netbird" "peertube" ]; diff --git a/machines/storage01/gitea-actions-runner.nix b/machines/storage01/gitea-actions-runner.nix new file mode 100644 index 0000000..71796a7 --- /dev/null +++ b/machines/storage01/gitea-actions-runner.nix @@ -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; + }; + }; +}