secure-node: add sudo shell alias for doas

A convenience helper which allows running most `sudo` cmds while
`doas` is enabled.

This is safe because all args supported by both `sudo` and
`doas` that lead to command execution (like `-u <user>`)
have identical semantics.
This commit is contained in:
Erik Arvstedt 2023-07-09 15:35:14 +02:00
parent 03fb70efa4
commit 5eaf104efe
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -25,6 +25,7 @@ in {
# Use doas instead of sudo
security.doas.enable = true;
security.sudo.enable = false;
environment.shellAliases.sudo = "doas";
environment.systemPackages = with pkgs; [
jq