What exactly are you running to get these errors?
Nix is a bit different to other distros, but if you stick with it you will get value from it…
this may help you out.
I’m not a ruby developer, so can’t go further, but if you want to post what commands your trying to run, and good debug, someone will help you.