A young man who killed a rapper in a home invasion gone wrong wanted to be a gangster and planned to supply a gun for another burglary months later.