diff --git a/nixos/boxes/vpsfree1/woodpecker.nix b/nixos/boxes/vpsfree1/woodpecker.nix index 832238e3..e7ae7578 100644 --- a/nixos/boxes/vpsfree1/woodpecker.nix +++ b/nixos/boxes/vpsfree1/woodpecker.nix @@ -40,6 +40,7 @@ in { WOODPECKER_GITEA_URL = "https://git.cyplo.dev"; }; ports = [ "${toString httpPort}:${toString httpPort}" ]; + extraOptions = [ "--network=woodpecker" ]; }; virtualisation.oci-containers.containers.woodpecker-agent = { @@ -49,8 +50,9 @@ in { "woodpeckerci/woodpecker-agent@sha256:9a98e25ca6fcf7c437ad355cfce53a696c55b9864399a4d456429a20bfb44545"; environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ]; environment = { - WOODPECKER_SERVER = "woodpecker-server:${toString agentPort}"; + WOODPECKER_SERVER = "${serverContainerName}:${toString agentPort}"; WOODPECKER_MAX_PROCS = "2"; }; + extraOptions = [ "--network=woodpecker" ]; }; }