Pinch Zoom in/out configure using libinput-gestures package

Needed help with the correct method to configure libinput-gestures package for pinch Zoom in/out:

https://search.nixos.org/packages?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=Libinput+gestures

I’m open to hear alternate/better suggestions to achieve the same

I’m in the same boat. Any luck figuring this out? If you’re using hyprland, another option is hyprgrass but it’s in alpha with a disclaimer posted that it may “render your touch device unusable”.

I’m not sure why libinput-gestures isn’t working on NixOS. I was able to get it to work on Arcolinux running hyprland.