Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos-rebuild: add explicit option to enable (remote) sudo #71849
Motivation for this change
Add --use-remote-sudo option. When set, remote commands will be prefixed
@jtojnar: I ended up with --use-remote-sudo instead of --use-sudo, to make the nixos-rebuild command line more self explanatory. And I don't abort if the flag is used and no remote command is happening, because, well, it felt more user friendly that way.
Add --use-remote-sudo option. When set, remote commands will be prefixed with 'sudo'. This allows using sudo remotely _without_ having to use sudo locally (when using --build-host/--taget-host).