nemo: add woodpecker user for woodpecker-agent
This commit is contained in:
parent
fe829e19c5
commit
8ad810254b
1 changed files with 18 additions and 0 deletions
|
@ -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 = {
|
||||
enable = true;
|
||||
package = pkgs.woodpecker-agent;
|
||||
|
@ -27,7 +41,11 @@
|
|||
];
|
||||
# restartIfChanged = false;
|
||||
serviceConfig = {
|
||||
User = "woodpecker";
|
||||
Group = "woodpecker";
|
||||
WorkingDirectory = "/etc/woodpecker";
|
||||
BindPaths = [ "/run/podman/podman.sock" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue