-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Complete TODOs in system.nix for macOS defaults configuration #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Summary by CodeRabbit
WalkthroughAlright, chat, here's the deal: The Nix Darwin system config just got a serious upgrade. Instead of single booleans, now we've got nested attribute sets for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NixConfig
participant macOSSystem
User->>NixConfig: Edit system.nix (add nested attribute sets)
NixConfig->>macOSSystem: Apply expanded controlcenter, finder, and loginwindow settings
macOSSystem-->>User: System applies new granular defaults
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ef4a8b7 to
aefb68b
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
| ShutDownDisabled = false; # Allow shutdown from login window | ||
| RestartDisabled = false; # Allow restart from login window | ||
| SleepDisabled = false; # Allow sleep from login window |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot all of this should be enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabled comprehensive NSGlobalDomain configuration with keyboard settings, UI preferences, text handling, printing defaults, and system behaviors as requested. All settings are now enabled. Changes in commit cc860d9.
dotfiles/nix/system.nix
Outdated
| _FXShowPosixPathInTitle = true; # Show full POSIX path in Finder title | ||
| CreateDesktop = true; # Show desktop icons | ||
| QuitMenuItem = true; # Allow quitting Finder | ||
| FXDefaultSearchScope = "SCcf"; # Search current folder by default | ||
| FXPreferredViewStyle = "Nlsv"; # Use list view by default | ||
| FXCalculateAllSizes = true; # Calculate all folder sizes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice +1
dotfiles/nix/system.nix
Outdated
| WiFiShowPercentage = true; | ||
| BluetoothShowPercentage = true; | ||
| SoundShowPercentage = true; | ||
| AccessibilityShortcuts = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot This doesn't seem right.
system.defaults.controlcenter.AirDrop
Apple menu > System Preferences > Control Center > AirDropShow a AirDrop control in menu …
system.defaults.controlcenter.BatteryShowPercentage
Apple menu > System Preferences > Control Center > BatteryShow a battery percentage in me…
system.defaults.controlcenter.Bluetooth
Apple menu > System Preferences > Control Center > BluetoothShow a bluetooth control in m…
system.defaults.controlcenter.Display
Apple menu > System Preferences > Control Center > DisplayShow a Screen Brightness contro…
system.defaults.controlcenter.FocusModes
Apple menu > System Preferences > Control Center > FocusShow a Focus control in menu bar
system.defaults.controlcenter.NowPlaying
Apple menu > System Preferences > Control Center > Now PlayingShow a Now Playing control …
system.defaults.controlcenter.Sound
Apple menu > System Preferences > Control Center > SoundShow a sound control in menu bar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the Control Center configuration to use the correct nix-darwin options as documented. Replaced invalid options (WiFiShowPercentage, BluetoothShowPercentage, etc.) with proper ones (AirDrop, Bluetooth, Display, FocusModes, NowPlaying, Sound). Changes in commit cc860d9.
dotfiles/nix/system.nix
Outdated
| _FXShowPosixPathInTitle = true; # Show full POSIX path in Finder title | ||
| CreateDesktop = true; # Show desktop icons | ||
| QuitMenuItem = true; # Allow quitting Finder | ||
| FXDefaultSearchScope = "SCcf"; # Search current folder by default | ||
| FXPreferredViewStyle = "Nlsv"; # Use list view by default | ||
| FXCalculateAllSizes = true; # Calculate all folder sizes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Double check that this is all correct.
system.defaults.finder._FXShowPosixPathInTitle
Whether to show the full POSIX filepath in the window title
system.defaults.finder._FXSortFoldersFirst
Keep folders on top when sorting by name
system.defaults.finder._FXSortFoldersFirstOnDesktop
Keep folders on top when sorting by name on the desktop
system.defaults.finder.AppleShowAllExtensions
Whether to always show file extensions
system.defaults.finder.AppleShowAllFiles
Whether to always show hidden files
system.defaults.finder.CreateDesktop
Whether to show icons on the desktop or not
system.defaults.finder.FXDefaultSearchScope
Change the default search scope
system.defaults.finder.FXEnableExtensionChangeWarning
Whether to show warnings when change the file extension of files
system.defaults.finder.FXPreferredViewStyle
Change the default finder view
system.defaults.finder.FXRemoveOldTrashItems
Remove items in the trash after 30 days
system.defaults.finder.NewWindowTarget
Change the default folder shown in Finder windows
system.defaults.finder.NewWindowTargetPath
Sets the URI to open when NewWindowTarget is "Other"
system.defaults.finder.QuitMenuItem
Whether to allow quitting of the Finder
system.defaults.finder.ShowExternalHardDrivesOnDesktop
Whether to show external disks on desktop
system.defaults.finder.ShowHardDrivesOnDesktop
Whether to show hard disks on desktop
system.defaults.finder.ShowMountedServersOnDesktop
Whether to show connected servers on desktop
system.defaults.finder.ShowPathbar
Show path breadcrumbs in finder windows
system.defaults.finder.ShowRemovableMediaOnDesktop
Whether to show removable media (CDs, DVDs and iPods) on desktop
system.defaults.finder.ShowStatusBar
Show status bar at bottom of finder windows with item/disk space stats
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-checked the Finder configuration against the nix-darwin documentation. All settings are correct and match the documented options. Removed duplicate FXCalculateAllSizes since it's already handled in activationScripts. Changes in commit cc860d9.
aefb68b to
a035ee9
Compare
Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com>
a035ee9 to
78cfda6
Compare
Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com>
…ow manager configs Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com>
Added the following configurations:
Fixes #9.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.