modules: services: woodpecker: use 'path' option
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
One less thing to modify in the systemd service.
This commit is contained in:
parent
f3f8c8fc3f
commit
e979589174
|
@ -21,15 +21,6 @@ in
|
||||||
PAGER = "cat";
|
PAGER = "cat";
|
||||||
};
|
};
|
||||||
|
|
||||||
environmentFile = [ cfg.sharedSecretFile ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Adjust runner service for nix usage
|
|
||||||
systemd.services.woodpecker-agent-exec = {
|
|
||||||
# Might break deployment
|
|
||||||
restartIfChanged = false;
|
|
||||||
|
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
woodpecker-plugin-git
|
woodpecker-plugin-git
|
||||||
bash
|
bash
|
||||||
|
@ -41,6 +32,15 @@ in
|
||||||
nix
|
nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
environmentFile = [ cfg.sharedSecretFile ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Adjust runner service for nix usage
|
||||||
|
systemd.services.woodpecker-agent-exec = {
|
||||||
|
# Might break deployment
|
||||||
|
restartIfChanged = false;
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
# Same option as upstream, without @setuid
|
# Same option as upstream, without @setuid
|
||||||
SystemCallFilter = lib.mkForce "~@clock @privileged @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap";
|
SystemCallFilter = lib.mkForce "~@clock @privileged @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap";
|
||||||
|
|
Loading…
Reference in a new issue