diff --git a/modules/nix-tools/user.nix b/modules/nix-tools/user.nix index 2b139f5..cdd97d2 100644 --- a/modules/nix-tools/user.nix +++ b/modules/nix-tools/user.nix @@ -27,17 +27,8 @@ ]; }; - # Removes password for sudo - security.sudo-rs = lib.mkIf isAdmin { - enable = true; - extraRules = [{ - users = [ "${username}" ]; - commands = lib.mkIf noPassword [{ - command = "ALL"; - options = [ "NOPASSWD" ]; - }]; - }]; - }; + + security.sudo-rs.enable = lib.mkIf isAdmin true; home-manager.useGlobalPkgs = true; # https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect