Open OleMussmann opened 1 year ago
I was having this issue, because I was using Nix flakes without updating the Nix channels.
This problem happens because nix-index
expects an updated \<nixpkgs> channel.
I fixed this issue by syncing the NIX_PATH
with the current version of my nixpkgs input (from flake.nix):
{
nix.nixPath = [ "nixpkgs=${nixpkgs.outPath}" ];
}
Note that you also need
nix.channel.enable
to be true (the default)
I am also getting this error. Aren't flakes a replacement for channels? Why are they still needed for this?
I am also getting this error. Aren't flakes a replacement for channels? Why are they still needed for this?
Flakes are an experimental feature, they are no replacement to channels today except if you know what you are doing.
I just wasn't aware that it's possible to use channels when using flakes. I got started with flakes directly and have never used channels.
The package
comma
fails for me, becausenix-index
can't, well, index anymore. I'm not sure ifnix-index
is choking, or ifnix-env
is to blame.