From 859a0e22c24f85d59c7f6393c5f5e4e677e2b85e Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 12 Aug 2025 16:35:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20[pi4]=20Do=20not=20require=20pas?= =?UTF-8?q?sword=20for=20sudo=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/pi4/security/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/pi4/security/default.nix b/hosts/pi4/security/default.nix index 4583115..63e7212 100644 --- a/hosts/pi4/security/default.nix +++ b/hosts/pi4/security/default.nix @@ -1,7 +1,22 @@ +{ systemConfig, ... }: + { imports = [ ./firewall.nix ]; + security.sudo.extraRules = [ + { + users = [ systemConfig.username ]; + runAs = "ALL:ALL"; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; + services.pcscd.enable = true; }