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 = {
|
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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue