Compare commits
No commits in common. "5606571943fbae1b0a90635905d939279c8957ae" and "4252cf081888ded3ed9db7a77f07499f81fae3bc" have entirely different histories.
5606571943
...
4252cf0818
2 changed files with 3 additions and 25 deletions
|
@ -1,17 +1,11 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{config, ...}: {
|
||||
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
||||
|
||||
services = let
|
||||
port = 3007;
|
||||
grpc-port = 9000;
|
||||
in {
|
||||
woodpecker-server = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.woodpecker-server;
|
||||
|
||||
environment = {
|
||||
WOODPECKER_OPEN = "true";
|
||||
|
@ -19,30 +13,14 @@
|
|||
WOODPECKER_ADMIN = "chef";
|
||||
WOODPECKER_HOST = "https://build.buffets.kitchen/";
|
||||
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
||||
WOODPECKER_GRPC_ADDR = ":${toString port}";
|
||||
|
||||
WOODPECKER_FORGEJO = "true";
|
||||
WOODPECKER_FORGEJO_URL = "https://buffets.kitchen/";
|
||||
WOODPECKER_GITEA = "true";
|
||||
WOODPECKER_GITEA_URL = "https://buffets.kitchen/";
|
||||
};
|
||||
|
||||
environmentFile = config.age.secrets.woodpecker.path;
|
||||
};
|
||||
|
||||
woodpecker-agents.agents = {
|
||||
podman = {
|
||||
package = pkgs.unstable.woodpecker-agent;
|
||||
|
||||
environment = {
|
||||
WOODPECKER_SERVER = "localhost:${toString grpc-port}";
|
||||
WOODPECKER_BACKEND = "docker";
|
||||
DOCKER_HOST = "unix:///run/podman/podman.sock";
|
||||
};
|
||||
|
||||
environmentFile = config.age.secrets.woodpecker.path;
|
||||
extraGroups = ["podman"];
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
virtualHosts."build.buffets.kitchen" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue