https://git.jolheiser.com/nixpecker.git
A Woodpecker Config Extension to parse nix configs.
NOTE: This extension will evaluate nix expressions, which can do much more than simple configuration. Only run this extension if you expect trusted nix expressions only.
Configuration can be provided via flags, environment variables (prefixed with NIXPECKER_), or a nix config file (default: .config.nix, override with --config).
| Flag | Short | Env | Default | Description |
|---|---|---|---|---|
--port |
-p |
NIXPECKER_PORT |
0 |
Port to listen on |
--public-key |
-k |
NIXPECKER_PUBLIC_KEY |
Woodpecker public key for verification | |
--public-key-file |
-K |
NIXPECKER_PUBLIC_KEY_FILE |
Path to file containing the Woodpecker public key | |
--log-level |
-l |
NIXPECKER_LOG_LEVEL |
info |
Log level (debug, info, warn, error) |
--json |
-j |
NIXPECKER_JSON |
false |
Enable JSON logging |
--nix |
-n |
NIXPECKER_NIX |
nix binary found on PATH |
Path to a nix binary if not on PATH |
let
port = 8080;
pubkey = "/etc/woodpecker/public.key";
in {
inherit port;
public-key-file = pubkey;
log-level = "info";
}