Fix nix darwin activation script after update

This commit is contained in:
Arnie 2025-08-21 11:31:24 +02:00
parent 2972486a85
commit 405af3517e
No known key found for this signature in database
GPG Key ID: 4BDFA3BCF2999D11
2 changed files with 9 additions and 6 deletions

View File

@ -94,12 +94,6 @@ in
# $ darwin-rebuild changelog # $ darwin-rebuild changelog
system.stateVersion = 5; system.stateVersion = 5;
system.activationScripts.postUserActivation.text = ''
# activateSettings -u will reload the settings from the database and apply them to the current session,
# so we do not need to logout and login again to make the changes take effect.
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
system.defaults = { system.defaults = {
dock = { dock = {
autohide = true; autohide = true;

View File

@ -13,6 +13,15 @@
"wireshark-chmodbpf" "wireshark-chmodbpf"
]; ];
system.primaryUser = "lcech";
system.activationScripts.postActivation.text = ''
# activateSettings -u will reload the settings from the database and apply them to the current session,
# so we do not need to logout and login again to make the changes take effect.
defaults write -g 'com.apple.mouse.linear' 1
sudo -u lcech /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
system.defaults.dock.persistent-apps = [ system.defaults.dock.persistent-apps = [
"/Applications/Cursor.app" "/Applications/Cursor.app"
"/Applications/Firefox.app" "/Applications/Firefox.app"