Northern Ireland international Aaron Donnelly could be poised to leave Nottingham Forest and join Dundee in a permanent deal.