When changing lambda (= wave length of K-alpha radiation of the x-ray anode) from Cu K-alpha (~1,54A) to Ni K-alpha (~1,66A) you willl experience a theta shift (increase of theta) in order to fullfill the above equation. The lattice plane distances d of CdS will not be changed when changing the x-ray wave length.