Open thechubbypanda opened 9 months ago
It also does not help when this config is used.
{
environment.systemPackages = [
pkgs.doas
pkgs.doas-sudo-shim
];
security.doas.enable = true;
security.sudo.enable = false;
}
-> # nixos-rebuild switch --upgrade-all --impure --flake /etc/nixos#(flake) --target-host (user)@(ip) --use-remote-sudo
building the system configuration...
(user@ip) Password:
copying 0 paths...
sudo: unrecognized option '--preserve-env=NIXOS_INSTALL_BOOTLOADER'
Usage:
sudo (-i | -s) [-n] [-u <user>] [<command> [--] [<args>...]]
sudo [-ins] [-u <user>] <command> [--] [<args>...]
sudo [-h]
Execute a command as another user using doas(1).
This is not the original sudo, but the doas shim for sudo. It supports only
a subset of the sudo options (both short and long) that have an equivalent in
doas, plus option -i (--login). Refer to sudo(1) for more information.
Please report bugs at <https://github.com/jirutka/doas-sudo-shim/issues>.
Shared connection to (ip) closed.
https://github.com/NixOS/nixpkgs/pull/289680 fix the issue, now it works if doas-sudo-shim
installed.
While that helps, I'd still like to not need the shim. Everything else I use works fine without.
Describe the bug
nixos-rebuild --use-remote-sudo
doesn't work with doasSteps To Reproduce
On remote:
On local:
Suggested solutions
Notify maintainers
@lheckemann
Metadata
Add a :+1: reaction to issues you find important.