LnL7 / nix-darwin

nix modules for darwin
MIT License
3.15k stars 452 forks source link

Bad remote builder settings are very difficult to revert #1060

Open zmitchell opened 2 months ago

zmitchell commented 2 months ago

I made a mistake filling out the configuration for a remote builder (I had the comment part of my SSH key still in there), which now means I can't build my system at all:

error: bad machine specification: failed to convert column #3 in a row: 'ssh-ng://nixbld@fd7a:115c:a1e0::19 aarch64-linux ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILsj5Gfjmar7Nj38f2bc7riB9CBqOoByzrR2zw4814HF zmitchell@fastmail.com 1 1 kvm,big-parallel,nixos-test,benchmark - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU93SjIvSGdwL0N4UWFac2Q0ak1oYjhhNUllY1l1Qm00NWltdGJUWlRWS2Ugcm9vdEBidWlsZC1hcm0K' to 'unsigned int'
error:
       … while reading the response from the build hook

       error: unexpected EOF reading a line

I haven't figured out where this setting is or how to delete it so that I can do a fresh build with the correct config.

So at this point I'm at a loss how to proceed, I'm completely unable to build the system.

zmitchell commented 2 months ago

I've also ensured that I have nix.distributedBuilds = false.

zmitchell commented 2 months ago

Alright, I managed to get myself unstuck. Here's what I did:

WOOF, that was scary for a bit, but I figured it out 😅

zmitchell commented 2 months ago

It would be nice if there was a way for the user to pass flags to the underlying nix build/nix-build call.

emilazy commented 2 months ago

Does darwin-rebuild build --option builders '' not work?

daniel-hope-koan commented 1 month ago

The config to use the builder may have been in the /etc/nix/nix.conf file