diff --git a/system/macos/system.nix b/system/macos/system.nix index 3210451..c078d5c 100644 --- a/system/macos/system.nix +++ b/system/macos/system.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { system.defaults = { dock = { @@ -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 ''; }