#!/usr/bin/env bash use flake if command -v gh >/dev/null && gh auth token >/dev/null; then export NIX_CONFIG="access-tokens = github.com=$(gh auth token)" else >&2 echo "WARNING: You have no github token configured." >&2 echo "WARNING: consider running 'gh auth login' then 'direnv reload'" fi