Wake up suspended by hitting external usb keyboard

Hi, how would I do this: wake-on-suspend-usb in nixos, through configuration.nix?

I’ve checked in laptop’s bios, but there’s no options to set that.
I want to able to wake up my laptop from suspense hitting any key on my usb keyboard.

If you’re going to use the echo method, you can put those echo commands into powerManagement.powerDownCommands, which should run before every suspend.

thanks, I’ve tried it, but unfortunately, it has not worked.

I can confirm this works on the unstable branch