33 lines
765 B
Nix
33 lines
765 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
services.woodpecker-agents.agents.docker = {
|
|
enable = true;
|
|
package = pkgs.woodpecker-agent;
|
|
environment = {
|
|
DOCKER_HOST = "unix:///run/podman/podman.sock";
|
|
WOODPECKER_BACKEND = "docker";
|
|
WOODPECKER_SERVER = "10.1.100.10:8300"; # forgejo-1
|
|
WOODPECKER_MAX_WORKFLOWS = "5";
|
|
WOODPECKER_BACKEND_DOCKER_VOLUMES = "/nix:/mnt/nix:ro";
|
|
};
|
|
environmentFile = [
|
|
"/etc/woodpecker/woodpecker-agent.env"
|
|
];
|
|
extraGroups = [ "podman" ];
|
|
};
|
|
|
|
systemd.services.woodpecker-agent-docker = {
|
|
after = [
|
|
"podman.socket"
|
|
"woodpecker-server.service"
|
|
];
|
|
# restartIfChanged = false;
|
|
serviceConfig = {
|
|
BindPaths = [ "/run/podman/podman.sock" ];
|
|
};
|
|
};
|
|
}
|