Hi,
I work daily with a project containing a flake which depends on nixpkgs
only once (other nixpkgs
inputs all follow the main nixpkgs
input):
$ nix flake metadata | grep "NixOS/nixpkgs"
│ ├───nixpkgs: github:NixOS/nixpkgs/5e7591e5e8c8cddc1e9c7cad01033e6c2d560cd0?narHash=sha256-ijS1XixgnF1UW1wnsO5J7rw5li0n6SZCBQWCYSfJwXw%3D (2024-12-08 07:13:28)
Every morning, I run nix develop
in the root of my project to start my work. Most of these mornings, nix develop
is downloading a recent copy of nixpkgs
which I suspect is nixpkgs-unstable
. For example, this morning, this was shown:
$ nix develop
[4.8/0.0 MiB DL] downloading 'https://github.com/NixOS/nixpkgs/archive/507b63021ada5fee621b6ca371c4fca9ca46f52c.tar.gz'
I suspect it is coming from nixpkgs-unstable
because also this morning I happened to have this temporary error:
$ nix develop
warning: error: unable to download 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable': HTTP error 403
response body:
{"message":"API rate limit exceeded for <REDACTED_IPv4>. (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"}; using cached version
I do not understand why a recent copy of nixpkgs
is downloaded most of the mornings I run nix develop
. It slows down my work and probably fills up my nix store for no apparent good reason.
- It is clear from the output of
nix flake metadata
that there is no dependency on recentnixpkgs
. Why doesnix develop
pull a recent copy ofnixpkgs
? - When running
nix develop
2 times in rapid succession, the second time never triggers the issue. What cache can I clear to reproduce the issue immediately without waiting for the next morning?
Thank you for your help!