diff --git a/modules/common/users.nix b/modules/common/users.nix index 0051e3f..60c2735 100644 --- a/modules/common/users.nix +++ b/modules/common/users.nix @@ -27,7 +27,7 @@ }) ]; - security.sudo.wheelNeedsPassword = false; + security.sudo.needsPassword = false; users.groups.wyatt = {}; diff --git a/modules/security/sudo.nix b/modules/security/sudo.nix index 9f0b04f..79360e8 100644 --- a/modules/security/sudo.nix +++ b/modules/security/sudo.nix @@ -6,7 +6,7 @@ with lib; { options = { security.sudo = { - wheelNeedsPassword = mkOption { + needsPassword = mkOption { type = types.bool; default = true; description = "Whether users in the wheel group need to provide a password for sudo."; @@ -15,7 +15,7 @@ with lib; { }; config = { - environment.etc."sudoers.d/wheel-no-password" = mkIf (!config.security.sudo.wheelNeedsPassword) { + environment.etc."sudoers.d/wheel-no-password" = mkIf (!config.security.sudo.needsPassword) { text = '' %wheel ALL=(ALL) NOPASSWD: ALL '';