- Replace deprecated postUserActivation with extraActivation
- Use sudo -u yanlin to run defaults commands as user from root context
- Addresses nix-darwin architecture change where all activation runs as root
- Menu bar spacing configuration now compatible with nix-darwin 25.x
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Replace CustomUserPreferences with system.activationScripts.postUserActivation
- Use defaults -currentHost write commands that actually work
- Corrected values: NSStatusItemSpacing=12, NSStatusItemSelectionPadding=6
- Commands will run during darwin-rebuild to apply host-specific preferences
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Create system/ directory for system-level nix-darwin configurations
- Add system/macos-defaults.nix with NSStatusItemSpacing and NSStatusItemSelectionPadding settings
- Configure optimal spacing (6) and padding (12) values for menu bar items
- Use CustomUserPreferences to support options not yet in nix-darwin main
- Set system.primaryUser to support user-specific preferences
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>