Error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)

Insralled nix through pacman I receave this error:

$ sudo nix-env -iA nixpkgs.hello
error: attribute 'nixpkgs' in selection path 'nixpkgs.hello' not found

Have you already looked at the following ArchWiki article for configuring nix?

Disclaimer: I am not familiar with nix so I might not be able to help any further


You might as well look at this guide:

1 Like

Add required users to the nix-users had forgotten

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.