The Welsh international defender scored a first-half winner to condemn Luton Town to relegation and keep the pressure on Sunderland.
Nyatanga, 18, spent a short time on-loan with the Black Cats earlier in the season before returning to Derby, and eventually onto Barnsley. He is now back at Pride Park and scored the only goal in a 1-0 win for The Rams.