emacs-twist / twist.nix

Build an entire Emacs configuration as a Nix package in a pure, reproducible way
GNU General Public License v3.0
66 stars 6 forks source link

API Request Rate Limiting #147

Closed 0x4d6165 closed 6 months ago

0x4d6165 commented 7 months ago

Hi! I was just wondering if it's on the roadmap to update twist such that it doesn't make so many API requests to github? I have an api key set up which helps some but I still get rate limited. Using a vpn is my current workaround but that doesn't seem ideal.

akirak commented 6 months ago

@0x4d6165 Hello, thank you for evaluating twist.

Yes, it is normal to hit the API rate limit of GitHub. You can prevent it by generating a personal access token on Settings and add it to your ~/.config/nix/nix.conf:

access-tokens = github.com=ghp_SOME_ENCODED_STRING

The details are unofficially documented here. I didn't further work on the documentation because I didn't have enough confidence with the API. It seems that I need to put more resources on this project, as some people are beginning to adopt it (or at least trying it out).