boot.kernelPackages not working

boot.kernelPackages = linuxKernel.kernels.linux_testing;

its not working. why??
NixOS unstable

You need to do use linuxKernel.packages.linux_testing or just linuxPackages_testing.

kernelPackages includes other packages dependent on the kernel version, mostly out of tree modules.