From b87e63bf9f95ec82610efbc01c58548fc0ed4f39 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Sat, 4 Nov 2023 09:24:25 +0100 Subject: [PATCH] Disable sudo lecture --- nixos/common/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/common/default.nix b/nixos/common/default.nix index 2b2e1c9..8d94f4e 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -38,6 +38,9 @@ # Allow sudo from the @wheel group security.sudo.enable = true; + security.sudo.extraConfig = '' + Defaults lecture = never + ''; # Ensure a clean & sparkling /tmp on fresh boots. boot.tmp.cleanOnBoot = lib.mkDefault true;