dotfiles/hosts/nemo/woodpecker.nix

34 lines
765 B
Nix
Raw Normal View History

2024-10-19 11:06:43 +02:00
{
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" ];
};
};
}