Any Xbox One (original Xbox One, Xbox One S, and Xbox One X) can be either the source or the destination console.
On the Xbox you want to copy from, go to Settings > Network > Network transfer and check the box to allow network transfer. This makes that Xbox visible to other consoles on the same network.
Once you’ve allowed transferring from the “host” Xbox, turn on the console onto which you’ll be copying games and apps, and go to the same settings page. Your host Xbox should be listed.
Select the Xbox you want to copy from, choose the items to copy, then select Copy selected.