Skip to content

Instantly share code, notes, and snippets.

@colemickens
Last active July 29, 2020 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colemickens/fcb5aa916280ee5df772e68808ba47e8 to your computer and use it in GitHub Desktop.
Save colemickens/fcb5aa916280ee5df772e68808ba47e8 to your computer and use it in GitHub Desktop.

This is really painful.

sudo nix --experimental-features 'nix-command flakes' --pure-eval build --profile /nix/var/nix/profiles/system -j 0 --builders-use-substitutes --builders 'ssh://myuser@20.191.64.192 x86_64-linux - - - big-parallel kvm' .#nixosConfigurations.xeep.config.system.build.toplevel

warning: Git tree '/home/cole/code/nixcfg' is dirty                                            
error: --- Error -------------------------------------------------------------------- nix      
unable to start any build; either increase '--max-jobs' or enable remote builds   

OK: sudo ssh myuser@20.191.64.192 true

OK: nix ping-store --store ssh://myuser@20.191.64.192

And:

> ssh myuser@20.191.64.192 systemctl cat nix-daemon.service | rg nix.conf
X-Restart-Triggers=/nix/store/zrf3g3mv44faz9zcwm8m0mw3bcg44s88-nix.conf

> ssh myuser@20.191.64.192 cat /nix/store/zrf3g3mv44faz9zcwm8m0mw3bcg44s88-nix.conf | rg trusted-users
trusted-users = myuser

I don't get it. I'm in trusted-users, I and root can ssh with no prompt. And yet I am getting nothing but:

considering building on remote machine 'ssh://myuser@20.191.64.192'                                                                                   
hook reply is 'decline'                                                                                                                                       
wait for build slot 

What does it take to fix this bug? Is it conceivable that someone who doesn't know C++ could easily fix it? Or does this require pumbling the rejection over from the remote daemon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment