| Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze |
| navody:distribuce:nixos [2026/08/10 05:24] – panika | navody:distribuce:nixos [2026/08/10 17:49] (aktuální) – panika |
|---|
| Při vytvoření VPS a reinstalaci systému je možné do VPS přes vpsAdmin nahrát a nasadit vlastní | Při vytvoření VPS a reinstalaci systému je možné do VPS přes vpsAdmin nahrát a nasadit vlastní |
| konfiguraci, viz [[navody:vps:userdata|user data]]. | konfiguraci, viz [[navody:vps:userdata|user data]]. |
| | |
| | ===== Správa VPS ===== |
| | Přejdi na [[:domu|návody VPS]] pro více informací o naší infrastruktuře a možnostech VPS. |
| | |
| | ===== Impermanence ===== |
| | Viz [[navody:distribuce:nixos:impermanence]]. |
| |
| ===== GitHub API limit ===== | ===== GitHub API limit ===== |
| nixpkgs se stahují z [[https://github.com/nixos/nixpkgs|GitHubu]] a [[https://nixos.wiki/wiki/Binary_Cache|Binary Cache]]. GitHub nepodporuje IPv6 a má limity buď [[https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2026-03-10#primary-rate-limit-for-unauthenticated-users|per IPv4]] nebo [[https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2026-03-10#primary-rate-limit-for-unauthenticated-users|per uživatel]]. | Nixpkgs se stahují z [[https://github.com/nixos/nixpkgs|GitHubu]] a [[https://nixos.wiki/wiki/Binary_Cache|Binary Cache]]. GitHub nepodporuje IPv6 a má limity buď [[https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2026-03-10#primary-rate-limit-for-unauthenticated-users|per IPv4]] nebo [[https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2026-03-10#primary-rate-limit-for-authenticated-users|per uživatel]]. |
| Při vyčerpání nix (respektive GitHub API) zahlásí: | Při vyčerpání Nix (respektive GitHub API) zahlásí: |
| <code> | <code> |
| error: unable to download 'GITHUB_URL': HTTP error 403 ('') | error: unable to download 'GITHUB_URL': HTTP error 403 ('') |
| {"message":"API rate limit exceeded for IP_ADDR. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"} | {"message":"API rate limit exceeded for IP_ADDR. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"} |
| </code> | </code> |
| Řešením je [[https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token|vyrobit si personal access token]] (Public respositories, v Permissions není potřeba nic) a [[https://search.nixos.org/options?channel=26.05&query=nix.settings&type=options#show=option%253Anix.settings|předat konfiguraci]] nixu: | Řešením je [[https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token|vyrobit si personal access token]] (Public repositories, v Permissions není potřeba nic) a [[https://search.nixos.org/options?channel=26.05&query=nix.settings&type=options#show=option%253Anix.settings|předat konfiguraci]] Nixu: |
| <code> | <code> |
| # configuration.nix | # configuration.nix |
| nix.settings.access-tokens = [ "github.com=github_pat_TokenTokenChangeMe" ]; | nix.settings.access-tokens = [ "github.com=github_pat_TokenTokenChangeMe" ]; |
| </code> | </code> |
| |
| ===== Správa VPS ===== | |
| Přejdi na [[:domu|návody VPS]] pro více informací o naší infrastruktuře a možnostech VPS. | |
| |
| ===== Impermanence ===== | |
| Viz [[navody:distribuce:nixos:impermanence]]. | |
| |