NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.07k stars 1.47k forks source link

Remote build fails if there's no system-wide openssh #4322

Open TerrorJack opened 3 years ago

TerrorJack commented 3 years ago

Describe the bug

When there's no system-wide openssh installation, remote build fails.

Steps To Reproduce

  1. Single-user nix setup in a clean debian sid container
  2. Set up remote building config, and max-jobs = 0 to prevent local building
  3. Build something, e.g. full texlive

Expected behavior

nix should perform remote build as expected. Instead, it fails with something like

these derivations will be built:
  /nix/store/dj872la65ipl1m2rlp33xa5wamjpi75p-happy-1.20.0.drv
  /nix/store/hzcaj0mfh447gw7n4pj9ja7wp783q2lv-fonts.conf.drv
cannot build on 'ssh://nix@build01.tweag.io': writing to file: Broken pipe: error: unable to execute 'ssh': No such file or directory
error: unable to start any build; either increase '--max-jobs' or enable remote builds

Installing nixpkgs.openssh into the user profile solves the issue, but I'd like to avoid adding things to my profile; ideally nix should use an openssh installation in the nix store automatically.

nix-env --version output

nix-env (Nix) 2.3.9
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info