How to enable both edge and twofinger modes in libinput.touchpad?

I want to be able to scroll on my touchpad using both edge mode and twofinger modes. This is possible on Ubuntu. How to do it on NixOS?

services.xserver = {
    libinput.touchpad = {
      naturalScrolling = true;
      scrollMethod = "edge";

How are you doing it on Ubuntu?

Maybe you can use the additionalOptions option?