these some good examples here that may help you
and a pretty details configuration here.
Samba - NixOS Wiki , say you have to run a imperative command, to set the smb password for each user… beware.
Logs are always good if you can provide them
I personally I use nfs for this kind of jobs ,