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