diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/doas.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/doas.nix b/modules/doas.nix index bf2ef38..eee5d50 100644 --- a/modules/doas.nix +++ b/modules/doas.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { security.sudo.enable = false; security.doas = { @@ -15,4 +15,10 @@ environment.shellAliases = { sudo = "doas"; }; + environment.systemPackages = [ + (pkgs.linkFarm "sudo" [ { + name = "bin/sudo"; + path = "${config.security.wrapperDir}/doas"; + }]) + ]; } |