with respect to QM densities leads to Kohn-Sham equations for quantum particles in the QM region. The resulting electronic and nuclear Kohn-Sham equations are highly similar to those in CNEO-DFT, except that the MM potential now enters both the electronic equation (Equation ) and the nuclear equation (Equation ) as an additional external potential term.