forgejo-actions-runner(host): enable IPv6 support in Docker

Enable the relevant config option and move to new network with an
explicit IPv6, because otherwise there's no default v6 route and v6 in
the Docker containers doesn't work.
This commit is contained in:
June 2026-04-29 03:08:20 +02:00
commit e0b593289d
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
4 changed files with 11 additions and 8 deletions

View file

@ -1,7 +1,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
networking.hostName = "forgejo-actions-runner"; networking = {
hostName = "forgejo-actions-runner";
domain = "hosts.hamburg.ccc.de";
};
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -9,5 +9,8 @@
enable = true; enable = true;
dates = "weekly"; dates = "weekly";
}; };
daemon.settings = {
ipv6 = true;
};
}; };
} }

View file

@ -5,14 +5,14 @@ let
in { in {
networking = { networking = {
interfaces.net0 = { interfaces.net0 = {
ipv4.addresses = [ ipv6.addresses = [
{ {
address = "172.31.17.155"; address = "2a00:14b0:42:102::18";
prefixLength = 25; prefixLength = 64;
} }
]; ];
}; };
defaultGateway = "172.31.17.129"; defaultGateway6 = "2a00:14b0:42:102::1";
nameservers = [ "212.12.50.158" "192.76.134.90" ]; nameservers = [ "212.12.50.158" "192.76.134.90" ];
search = [ "hamburg.ccc.de" ]; search = [ "hamburg.ccc.de" ];
}; };

View file

@ -9,9 +9,6 @@
"git": { "git": {
"targetHostname": "git.hamburg.ccc.de" "targetHostname": "git.hamburg.ccc.de"
}, },
"forgejo-actions-runner": {
"targetHostname": "forgejo-actions-runner-intern.hamburg.ccc.de"
},
"woodpecker": { "woodpecker": {
"targetHostname": "woodpecker-intern.hamburg.ccc.de" "targetHostname": "woodpecker-intern.hamburg.ccc.de"
}, },