I can’t rebuild from flake on nix-darwin, there seems to be an issue fetching other flakes.
I get an error like:
error: looking up directory '«github:nix-community/poetry2nix/026858e4700f0e1cc5cf4d2b9a1ae11c41ab88be?narHash=sha256-/HGpq4yVSH7tHMBnTeCNUbfLuzYLLRRtvqNzDAP1d8k%3D»/.github': object not found - no match for id (ac0f9caeea0b8caacb308c9858364557ab08029b)
The poetry2nix flake is in my configuration, however if I remove any poetry2nix references, it’ll fail on the next flake that’s used.
I suspected this was a cryptic error for a GitHub API limit, but I have added access-tokens = github.com=<token> to both my configuration.nix (under nix.extraOptions), and in /etc/nix.conf and there is no change.
For what it’s worth, the same flake builds find on NixOs (with a very similar configuration).
Nix has been an absolute shitshow this year, I would try with 2.18.8, 2.24.11 (not 2.24.12, since that had some regressions related to fetching flake inputs), 2.26.2, or even lix, see which one of those works.
Due to all the recent regressions I’m 99% sure it’s the nix version, especially since it works on one machine but not another.
Definitely don’t use nix-env… nix-shell -p or nix shell would’ve been better.
I mean… software has bugs sometimes, that’s unavoidable with any software. Though I forgot to mention, deleting ~/.cache/nix may have helped if it was some bug that resulted in a broken cache. In any case, good thing you were able to resolve it.