I am currently reading basics of deformation theory from Hartshorne's book on Deformation theory. I understood how the n'th infinitesimal neighbourhood of diagonal is defined for classical schemes. My question is
How one defines these infinitesimal neighbourhoods of derived schemes.
The classical definition sees not correct because the ideal of a closed immersion of derived scheme is contained in $\pi_0\mathcal{O}_X$. It does not contain any derived information. I looked in Lurie's DAG- XII where he defined the completion of a spectral Deligne Mumford stack completely using functor of points. Since the completion is defined in derived set up so there should be similar kind of objects in derived geometry which captures the idea of n'th infinitesimal neighbourhoods. Any suitable referance is also welcone.