From 88d9eb51958cd0a289d569d85aab48f108cd9537 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 16 Jan 2023 00:03:51 +0100 Subject: [PATCH] better sudo config --- common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.nix b/common.nix index ab37b13..63da7a3 100644 --- a/common.nix +++ b/common.nix @@ -340,6 +340,12 @@ in virtualisation.virtualbox.host.enable = true; users.extraGroups.vboxusers.members = [ "cullmann" ]; + # configure sudo + security.sudo.execWheelOnly = true; + security.sudo.extraConfig = '' + Defaults lecture = never + ''; + ### ### per user configuration below ###