If what you need is available, however, then it can be so much better.
Where Debian/PIP/NPM/Cargo already do work.
Nix as an instruction set, no, you still have to declare what you want, same as a dockerfile.
it's just... Docker will do what a shell script will.
Nix is like hoping someone's done the upstream finagling to get your particular dependencies happy.