127 means (command) not found.
Make sure, the command in question is known in the executing environment.
To test this, you might wanna temporarily use absolute paths. Since this approach is naturally never a good idea in NixOS, you have to change it afterwards, if you find out it works this way & then fix the issue with the environment.
