forked from fediversity/fediversity
woodpecker: add packages needed for network
https://github.com/NixOS/nixpkgs/pull/73971#issuecomment-790421418
This commit is contained in:
parent
26bd520b2c
commit
5942011504
1 changed files with 28 additions and 19 deletions
|
|
@ -226,33 +226,42 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://woodpecker-ci.org/docs/administration/configuration/agent
|
# https://woodpecker-ci.org/docs/administration/configuration/agent
|
||||||
woodpecker-agents.agents = {
|
woodpecker-agents.agents =
|
||||||
exec = {
|
let
|
||||||
# enable = true;
|
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
|
attic-client
|
||||||
|
bash
|
||||||
|
bind
|
||||||
|
coreutils
|
||||||
|
dnsutils
|
||||||
git
|
git
|
||||||
git-lfs
|
git-lfs
|
||||||
woodpecker-plugin-git
|
gnutar
|
||||||
bash
|
gzip
|
||||||
coreutils
|
|
||||||
nix
|
nix
|
||||||
attic-client
|
|
||||||
openssh
|
|
||||||
npins
|
npins
|
||||||
|
openssh
|
||||||
strace
|
strace
|
||||||
|
woodpecker-plugin-git
|
||||||
];
|
];
|
||||||
environmentFile = [ config.vars.generators."templates".files."woodpecker-agent-exec.conf".path ];
|
in
|
||||||
extraGroups = [ "woodpecker-agent-exec" ];
|
{
|
||||||
|
exec = {
|
||||||
|
# enable = true;
|
||||||
|
inherit path;
|
||||||
|
environmentFile = [ config.vars.generators."templates".files."woodpecker-agent-exec.conf".path ];
|
||||||
|
extraGroups = [ "woodpecker-agent-exec" ];
|
||||||
|
};
|
||||||
|
docker = {
|
||||||
|
enable = true;
|
||||||
|
inherit path;
|
||||||
|
environmentFile = [ config.vars.generators."templates".files."woodpecker-agent-podman.conf".path ];
|
||||||
|
extraGroups = [
|
||||||
|
"podman"
|
||||||
|
"woodpecker-agent-docker"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
docker = {
|
|
||||||
enable = true;
|
|
||||||
environmentFile = [ config.vars.generators."templates".files."woodpecker-agent-podman.conf".path ];
|
|
||||||
extraGroups = [
|
|
||||||
"podman"
|
|
||||||
"woodpecker-agent-docker"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue