Network manager "Shared to other computers" doesn't work

I want to share my wifi internet with lan cable to a raspberry pi, but it seems network manager doesn’t respond to the dhcp requests. When I see processes listening on 67/udp only a dnsmasq process is listening, and I guess it prevents network manager from doing the dhcp work. But I don’t have dnsmasq in my nixos config and I don’t know where it comes from. The other thing worth to mention is that I was able to share my internet using network manager before nixos 23.11.

dnsmasq is started by NetworkManager to provide a dhcp service.
It might be useful to run nmcli to get the status of all networks.