Skip to content

Personal Access Token (PAT) Setup

Jurriaan Pruijs edited this page May 24, 2024 · 4 revisions

In order to use github:unionlabs/union references such as when building bundle-testnet, you will need to configure a GitHub Personal Access Token (PAT) and tell Nix to use it.

Creating your PAT

This PAT only needs read access to the contents of unionlabs/union. You create one as follows:

  1. Go to the fine-grained tokens page in settings
  2. Click "Generate new token"
  3. Set the following properties:
Expiry:                 90 days
Resource owner:         unionlabs
Repository access:      Only select repositories > union
Repository permissions: Contents - read-only
  1. Click "Generate token"
  2. Copy the token to a secure location, such as a password manager
  3. Message @cor to ask him to approve your PAT request

Configuring Nix to use your PAT:

  1. mkdir -p ~/.config/nix
  2. touch ~/.config/nix/nix.conf
  3. Insert access-tokens = github.com=github_pat_XYZ123...