What was the problem you were having with Ruby (on Rails) and Nix? It wasn't ergonomic for me, but I was able to get things to work.
The rails support was more of just to handle packaging existing software as opposed to being good for a development environment.
I've not used Nix so I legitimately don't know (but I am quite interested in it)