From c43bf1138ee3139a063e0f5fc629ead95520b99f Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 30 Aug 2025 19:33:56 +0200 Subject: [PATCH] Grant yanlin passwordless sudo on macos --- system/darwin/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/darwin/default.nix b/system/darwin/default.nix index f3d8a6f..9797329 100644 --- a/system/darwin/default.nix +++ b/system/darwin/default.nix @@ -27,6 +27,11 @@ # Set primary user for system preferences system.primaryUser = "yanlin"; + # Security configuration - passwordless sudo for yanlin + security.sudo.extraConfig = '' + yanlin ALL=(ALL) NOPASSWD: ALL + ''; + # Menu bar spacing configuration using activation scripts # Uses sudo to run as user since activation now runs as root # NSStatusItemSpacing controls horizontal spacing between menu bar items