Setting sysfs parameters in NixOS

Is there a way to declaratively set parameters in /sys in NixOS? I could only find one for sysctl in the options.

Luckily for my use-case it can also be done with kernelParams but I’d like to know for the future.