nixos-config/config/services/woodpecker.nix

25 lines
599 B
Nix

{
config,
pkgs,
lib,
...
}: {
services.woodpecker-server = {
enable = true;
environment = {
WOODPECKER_HOST = "https://woodpecker.chir.rs";
WOODPECKER_SERVER_ADDR = ":47927";
WOODPECKER_ADMIN = "darkkirb";
};
environmentFile = config.sops.secrets."services/woodpecker".path;
};
sops.secrets."services/woodpecker" = {};
services.caddy.virtualHosts."woodpecker.int.chir.rs" = {
useACMEHost = "int.chir.rs";
logFormat = pkgs.lib.mkForce "";
extraConfig = ''
import baseConfig
reverse_proxy http://127.0.0.1:47927
'';
};
}