Home

nixpecker @472048245d0ca3d4188b5907141955bb19ad72b4 - refs - log -
-
https://git.jolheiser.com/nixpecker.git
Woodpecker config service for nix
-rw-r--r--
1.1 kB
LICENSE
-rw-r--r--
1.4 kB
README.md
-rw-r--r--
0 B
debug.patch
-rw-r--r--
1.1 kB
flake.lock
-rw-r--r--
9.2 kB
flake.nix
-rw-r--r--
1.4 kB
go.mod
-rw-r--r--
51 B
go.mod.sri
-rw-r--r--
7.3 kB
go.sum
-rw-r--r--
6.3 kB
main.go
-rw-r--r--
9.0 kB
main_test.go

nixpecker

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

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

Config file example

let
  port = 8080;
  pubkey = "/etc/woodpecker/public.key";
in {
  inherit port;
  public-key-file = pubkey;
  log-level = "info";
}

License

MIT