nemo: add woodpecker user for woodpecker-agent

This commit is contained in:
Daniel Lundin 2024-11-21 14:52:59 +01:00
parent fe829e19c5
commit 8ad810254b
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -4,6 +4,20 @@
... ...
}: }:
{ {
users.users.woodpecker = {
isSystemUser = true;
group = "woodpecker";
extraGroups = [
"docker"
"podman"
];
createHome = true;
home = "/etc/woodpecker";
homeMode = "764";
};
users.groups.woodpecker = { };
services.woodpecker-agents.agents.docker = { services.woodpecker-agents.agents.docker = {
enable = true; enable = true;
package = pkgs.woodpecker-agent; package = pkgs.woodpecker-agent;
@ -27,7 +41,11 @@
]; ];
# restartIfChanged = false; # restartIfChanged = false;
serviceConfig = { serviceConfig = {
User = "woodpecker";
Group = "woodpecker";
WorkingDirectory = "/etc/woodpecker";
BindPaths = [ "/run/podman/podman.sock" ]; BindPaths = [ "/run/podman/podman.sock" ];
}; };
}; };
} }