The following firmware can be uploaded onto an ESP32-C6 to expose a ZigBee device.
At the bottom is the zigbee2mqtt device definition.
Firmware:
#include "esp_zigbee.h"
void setup() {
// Initialize Zigbee stack configuration for a Zigbee end-device