Error installing packages

error: while setting up the build environment: getting attributes of path ‘$(nix-build’: No such file or directory
Seem to me it is missing a bracket or parsed wrong, but I don’t know where to look for the line.
This is a fresh install on Manjaro.

Got it working with archlinux-nix.