Using setgid inside a nix shell

Hello everyone,

I’ve been connecting to access servers where I do not have root access. Wanting to use my home-manager configuration, I’ve been able to make my setup work using nix-portable.

However, when trying to launch specific commands from this server, I get this error message:

[OARDO] ERROR: Cannot setgid with oar gid (Invalid argument)

From what I gathered from the internet, nix blocks setgid and setuid calls from happening. However, using this binary is a necessity for me. Does anyone have any idea how I could bypass this limitation ?

For reference, the source code of the binary I’m trying to run - or at least the part that is causing issues - can be found there [OARDO] ERROR: Cannot setgid with oar gid (Invalid argument).