From af3c401cf6025777856402debe784c993865b7fa Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Thu, 3 Oct 2024 00:17:05 +0200 Subject: [PATCH] core: add sudo rule --- hosts/quitte/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/quitte/configuration.nix b/hosts/quitte/configuration.nix index 91f3c3e..382e2c2 100644 --- a/hosts/quitte/configuration.nix +++ b/hosts/quitte/configuration.nix @@ -27,6 +27,17 @@ time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "en_US.UTF-8"; + security.sudo.extraRules = [ + { + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + groups = [ "admins" ]; + } + ]; # prevent fork bombs security.pam.loginLimits = [ {