Skip to content

Focus

Everything under System Settings › Focus, as Nix options. Each one is named after the control you'd click, and set under programs.nix-plist-manager.options in home-manager.

1 option 1 verified against System Settings

System Settings › Focus › Share across devices

home-manager · per user ✓ Verified on macOS 27 Restarts donotdisturbd
applications.systemSettings.focus.shareAcrossDevices = true;

true or false "unset" puts back macOS's default.

Where it's stored and what runs
  • com.apple.donotdisturbd disableCloudSync

For false:

/usr/bin/defaults write com.apple.donotdisturbd disableCloudSync -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.donotdisturbd disableCloudSync -bool true' >&2
/usr/bin/defaults -currentHost delete com.apple.donotdisturbd disableCloudSync 2>/dev/null || true
/usr/bin/killall donotdisturbd 2>/dev/null || true

For true:

/usr/bin/defaults write com.apple.donotdisturbd disableCloudSync -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write com.apple.donotdisturbd disableCloudSync -bool false' >&2
/usr/bin/defaults -currentHost delete com.apple.donotdisturbd disableCloudSync 2>/dev/null || true
/usr/bin/killall donotdisturbd 2>/dev/null || true

For unset:

/usr/bin/defaults delete com.apple.donotdisturbd disableCloudSync 2>/dev/null || true
/usr/bin/defaults -currentHost delete com.apple.donotdisturbd disableCloudSync 2>/dev/null || true
/usr/bin/killall donotdisturbd 2>/dev/null || true