In the presence of NH3, the 3d electrons pair up learning two ‘d’ orbitals empty to be involved in d2sp3 hybridisation forming inner orbital complex.
In [Ni(NH3)6]+2, Ni is in +2 oxidation state and has d8 configuration. The hybridisation involved in sp3d2 and hence, it forms an outer orbital complex.