Skip to content

Commit

Permalink
fix(dock): run defaults write before reload
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Feb 21, 2024
1 parent fdfc3e9 commit e2bd4d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/darwin/activation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
lib.concatMapStrings (x: ''"'' + x + ''" '')
config.system.defaults.CustomUserPreferences."com.apple.dock".persistent-apps;
in ''
# Choose and order dock icons
defaults write com.apple.dock persistent-apps -array ${persistentApps}
# 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
# Choose and order dock icons
defaults write com.apple.dock persistent-apps -array ${persistentApps}
'';

# Settings that don't have an option in nix-darwin
Expand Down

0 comments on commit e2bd4d0

Please sign in to comment.