What type of users are you trying to generate?
Why can they not be generated after the image has been built.
Mount the image, chroot, add the user, exit and unmount.
What you would ideally need is a script/program that can write a line of /etc/passwd to stdout which you could then pipe to $NANO_BASE/etc/passwd