mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
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:
parent
03fb70efa4
commit
5eaf104efe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user