diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2024-01-14 01:14:33 +0100 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2024-01-14 01:14:33 +0100 |
| commit | 472dfb38884dcbaed042b69fab6249fe58819939 (patch) | |
| tree | a8414813d04f8a9a5acfd029ec6fab11049d20eb /pkgs/development/python-modules/rangehttpserver | |
| parent | 99d3e0c1680c0e652e6da1e50de465c176fd6d92 (diff) | |
nixos-rebuild: Add tty only to "sudo-able" commands for target
This solves again the problem solved by 09fd207cb8a6a1e654cdc9dc49610ebd456fe05d.
To quote:
> We always want to use `ssh -t` to force PTY allocation as there may be
> interactive SSH prompts like trusting unknown hosts.
However, the creation of a pseudoterminal causes the remote stdout and stderr
to point to the same tty, resulting in a single stream in the ssh client,
which breaks other usages of ssh, such as `--build-host`.
Hence, this commit only sets the flag for invocations that need it -
or would need it if sudo were disabled. That should help with development
and gives a somewhat more consistent user experience.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
