From 311ab760ea7cabbc322ad7f5939679d010377f14 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 29 Mar 2026 18:47:05 -0500 Subject: [PATCH] remove no password stuff from user factory --- modules/nix-tools/user.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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