---
name: "FlakeHub Cache Buildkite Plugin"
description: "Use FlakeHub Cache, zero-configuration binary cache for Nix. See: https://flakehub.com/cache
."
author: "saronic-technologies"
repo: "flakehub-cache-buildkite-plugin"
stars: 1
official: false
---

# FlakeHub Cache Buildkite Plugin

A Buildkite plugin for using DeterminateSystems FlakeHub Cache.
See: https://flakehub.com/cache

## Example

Add the following to your `pipeline.yml`:

```yml
steps:
  - command: nix build .#my-package
    plugins:
      - saronic-technologies/flakehub-cache#v2.0.0
```

## Configuration

### `upload-logs` (Optional, boolean)

Whether or not to upload plugin logs to the Buildkite job (default `true`).

### `token-lifetime-seconds` (Optional, integer)

Lifetime of the token generated by `buildkite-agent oidc` in seconds (default `3600`).