nixbuild / nix-quick-install-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: file 'nixpkgs' was not found in the Nix search path

arximboldi opened this issue · comments

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?

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.

Thank you a lot for the answer @rickynils and sorry for the misunderstanding!