Commit graph

8 commits

Author SHA1 Message Date
Yan Lin
4689a4f69c Rearrange the config structure 2025-08-28 20:25:28 +02:00
Yan Lin
2a2e053d62 Add homebrew 2025-08-28 17:01:11 +02:00
Yan Lin
0fc12a626a Add tailscale module 2025-08-26 19:58:38 +02:00
Yan Lin
f7a36ce662 Add disable spotlight 2025-08-23 22:06:30 +08:00
Yan Lin
88ac848257 Update system config 2025-07-31 14:19:00 +02:00
Yan Lin
cc0b8450e0 Fix nix-darwin activation script for newer version compatibility
- 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>
2025-07-30 18:27:45 +02:00
Yan Lin
d661a80fa9 Fix macOS menu bar spacing configuration to use activation scripts
- 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>
2025-07-30 18:24:20 +02:00
Yan Lin
052a8d74e6 Add macOS menu bar spacing configuration
- 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>
2025-07-30 14:00:40 +02:00