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:
@@ -25,6 +25,7 @@ in {
|
|||||||
# Use doas instead of sudo
|
# Use doas instead of sudo
|
||||||
security.doas.enable = true;
|
security.doas.enable = true;
|
||||||
security.sudo.enable = false;
|
security.sudo.enable = false;
|
||||||
|
environment.shellAliases.sudo = "doas";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
jq
|
jq
|
||||||
|
|||||||
Reference in New Issue
Block a user