You might need to give the full path (thus the package), by default system doesn’t have a PATH which includes for example “nmcli” command as far as I know.
Here is a part from my config:
resumeCommands = ''
${pkgs.utillinux}/bin/rfkill unblock wlan
'';