about summary refs log tree commit diff
path: root/nixos/tests/sudo.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/sudo.nix')
-rw-r--r--nixos/tests/sudo.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/sudo.nix b/nixos/tests/sudo.nix
index ae9362ca70da0..661fe9989e7a8 100644
--- a/nixos/tests/sudo.nix
+++ b/nixos/tests/sudo.nix
@@ -28,6 +28,10 @@ in
           enable = true;
           wheelNeedsPassword = false;
 
+          extraConfig = ''
+            Defaults lecture="never"
+          '';
+
           extraRules = [
             # SUDOERS SYNTAX CHECK (Test whether the module produces a valid output;
             # errors being detected by the visudo checks.