Error: file 'nixpkgs' was not found in the Nix search path
arximboldi opened this issue · comments
Juanpe Bolívar commented
I am using the action with:
- uses: nixbuild/nix-quick-install-action@v2
However, I get this error:
error: file 'nixpkgs' was not found in the Nix search path
Is there anything I am doing wrong?
Rickard Nilsson commented
As stated in https://github.com/marketplace/actions/nix-quick-install#details, this action doesn't set up NIX_PATH or Nix channels, so you have to do that on your own.
There's a number of different ways to handle this in Nix. For example, you can assign NIX_PATH, pin nixpkgs or use flakes.
Juanpe Bolívar commented
Thank you a lot for the answer @rickynils and sorry for the misunderstanding!