DBCDK/morph

Don't use sudo when SSH uses root user

mweinelt opened this issue · 1 comments

I can't disable sudo on machines, that don't have any users that should elevate because morph relies on sudo, likely to switch-to-configuration? Can this be made optional?

Executing 'switch' on matched hosts:

** foo.example.com
bash: sudo: command not found
exit status 127%    
{
  security.sudo.enable = false;
}
srhb commented

We're fine with an if root then no-sudo! :)