feat: forgejo runner needs docker enabled
All checks were successful
Build_Deploy / linter (push) Successful in 11s
Build_Deploy / build (push) Successful in 4m50s
Build_Deploy / deploy_dns (push) Successful in 38s
Build_Deploy / deploy_active (active) (push) Successful in 46s
Build_Deploy / deploy_active (active-core) (push) Successful in 1m10s
Build_Deploy / deploy_active (active-ext) (push) Successful in 30s

This commit is contained in:
silver 2024-10-04 12:00:48 +01:00
parent 51d8a84432
commit ad9e434a28
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -107,6 +107,12 @@ in {
}; };
}; };
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
virtualisation.docker.enable = true;
# taken from https://github.com/NixOS/nixpkgs/issues/245365#issuecomment-1663854128
virtualisation.docker.listenOptions = ["/run/docker.sock" "127.0.0.1:2375"];
# the actual runner # the actual runner
services.gitea-actions-runner = { services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner; package = pkgs.forgejo-actions-runner;
@ -118,8 +124,8 @@ in {
labels = [ labels = [
## optionally provide native execution on the host: ## optionally provide native execution on the host:
"nix:host" "nix:host"
"docker:docker://node:16-bullseye" "docker:docker://node:22-bookworm"
"ubuntu-latest:docker://node:16-bullseye" "ubuntu-latest:docker://node:22-bookworm"
]; ];
hostPackages = with pkgs; [ hostPackages = with pkgs; [
@ -128,7 +134,7 @@ in {
coreutils coreutils
curl curl
gawk gawk
gitMinimal git
gnused gnused
nodejs nodejs
wget wget
@ -145,6 +151,7 @@ in {
attic-client attic-client
nix nix
openssh openssh
sudo
]; ];
}; };
}; };