I was upgrading an old laptop, that hadn’t seen meaningful update since November 2023. It’s a pretty weak laptop, so I used nixos-rebuild --build-host <local-ip-of-my-desktop> (Nix 2.17.1) and it worked great. Now that my laptop has been updated (Nix 2.28.3), I wanted to build something else, so again I used --build-host, but now it seemed to do nothing. When I put in an IP that wasn’t my desktop, it didn’t care, and did the same thing. When I forced it to not build locally using -j 0, I got the following:
error:
Unable to start any build;
either increase '--max-jobs' or enable remote builds.
I’ve looked through the nix configuration. I don’t see anything like remote-builds = true. I’m puzzled as to why this no longer works.
edit: I decided to just go back to the old generation where it worked to build my current config, and it gave me the same error. So now I’m even more confused.
It can if I specify the user, but I tried that and nixos-rebuild still fails in the same way. To be clear, you’re asking about trying to ssh into a non-root user as root, not about trying to ssh into a root user, correct?
okay, so making sure I add the user@ bit to the host did actually fix --builders not working. However --build-host still doesn’t work no matter what I do. I can proceed using --builders, but I’m still curious why --build-host doesn’t work.
sudo ssh <user>@<host> succeeds
(Throwing in a -j0 in there to make sure I don’t get any false positives) sudo nixos-rebuild --build-host <user>@<host> -j0 build
gives me the error in the original post.