Using niv to version home-manager zsh plugins?

Good question.

nix-repl> foo = {}
nix-repl> "${foo}"
error: cannot coerce a set to a string, at (string):1:2
nix-repl> bar = { outPath = "/hello/world"; }
nix-repl> "${bar}"                            
"/hello/world"

I guess it would be nice if this was documented in the Nix manual.