Nix can replace opam, which is the dependency manager supporting isolated ocaml environments. I generally try to use Ocaml now without opam, and just using Nix.
You'll still want dune, though I could see an argument for generating the dune files from nix expressions.