MyNixOS website logo
option

services.buildkite-agents.<name>.hooks.environment

The environment hook will run before all other commands, and can be used to set up secrets, data, etc. Anything exported in hooks will be available to the build script.

Note: the contents of this file will be copied to the world-readable Nix store.

Declarations
    Type
    null or strings concatenated with "\n"
    Default
    null
    Example
    ''
      export SECRET_VAR=`head -1 /run/keys/secret`
    ''