hercules-ci-agent
hercules-ci-agent copied to clipboard
the build users group 'nixbld' has no members
Most likely caused by https://github.com/NixOS/nix/issues/1559
This issue might well be related to that bug but, as far as I can tell, the agent doesn't work with single-user nix at all (even when normal nix commands work just fine). It seems to be at least somewhat agent-specific because normal nix commands can work properly on a single-user-nix machine while the agent is unable to perform builds.
I think this can be fixed with
$ mkdir -m 0755 /etc/nix
$ echo "build-users-group =" > /etc/nix/nix.conf
Just as a data point, I hit this bug since I had enabled auto-allocate-uids
and then disabled it. I think the first time I enabled it, it deleted all my nixbld users. @SuperSandro2000 fix worked for me.