From 061cfe921a621bff40511159b91ebda5ceb004b9 Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Sun, 21 Sep 2025 08:51:54 -0700 Subject: [PATCH] macos/system.nix: use primaryUser --- system/macos/system.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/macos/system.nix b/system/macos/system.nix index 3210451..3d657b7 100644 --- a/system/macos/system.nix +++ b/system/macos/system.nix @@ -97,6 +97,6 @@ system.activationScripts.postActivation.text = '' # Following line should allow us to avoid a logout/login cycle when changing settings - sudo -u tbingmann /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u + sudo -u ${config.system.primaryUser} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u ''; }