From 78cfda69ab08160ade0cd57fda84297e0f910e03 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 May 2025 18:54:44 +0000 Subject: [PATCH 1/3] Add controlcenter, finder, and loginwindow configurations Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com> --- dotfiles/nix/system.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/dotfiles/nix/system.nix b/dotfiles/nix/system.nix index 78c894d..8e4620c 100644 --- a/dotfiles/nix/system.nix +++ b/dotfiles/nix/system.nix @@ -43,8 +43,13 @@ SortColumn = "CPUUsage"; SortDirection = 0; }; - controlcenter.BatteryShowPercentage = true; - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.controlcenter + controlcenter = { + BatteryShowPercentage = true; + WiFiShowPercentage = true; + BluetoothShowPercentage = true; + SoundShowPercentage = true; + AccessibilityShortcuts = true; + }; dock = { autohide = true; @@ -64,11 +69,22 @@ FXRemoveOldTrashItems = false; # Remove items from the Trash after 30 days ShowPathbar = false; ShowStatusBar = true; - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.finder + _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 }; hitoolbox.AppleFnUsageType = "Change Input Source"; - loginwindow.GuestEnabled = false; - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.loginwindow + loginwindow = { + GuestEnabled = false; + DisableConsoleAccess = true; # Disable console access at login + LoginwindowText = "Welcome to Lars's Mac"; # Custom login message + ShutDownDisabled = false; # Allow shutdown from login window + RestartDisabled = false; # Allow restart from login window + SleepDisabled = false; # Allow sleep from login window + }; menuExtraClock = { FlashDateSeparators = false; IsAnalog = null; From cc860d98065093570dbc5898a35e41fe73ad8741 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:07:07 +0000 Subject: [PATCH 2/3] Fix Control Center config and expand NSGlobalDomain settings Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com> --- dotfiles/nix/system.nix | 42 ++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/dotfiles/nix/system.nix b/dotfiles/nix/system.nix index 8e4620c..220de48 100644 --- a/dotfiles/nix/system.nix +++ b/dotfiles/nix/system.nix @@ -44,11 +44,13 @@ SortDirection = 0; }; controlcenter = { - BatteryShowPercentage = true; - WiFiShowPercentage = true; - BluetoothShowPercentage = true; - SoundShowPercentage = true; - AccessibilityShortcuts = true; + AirDrop = true; # Show AirDrop control in menu bar + BatteryShowPercentage = true; # Show battery percentage in menu bar + Bluetooth = true; # Show bluetooth control in menu bar + Display = true; # Show Screen Brightness control in menu bar + FocusModes = true; # Show Focus control in menu bar + NowPlaying = true; # Show Now Playing control in menu bar + Sound = true; # Show sound control in menu bar }; dock = { @@ -74,7 +76,6 @@ 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 }; hitoolbox.AppleFnUsageType = "Change Input Source"; loginwindow = { @@ -95,11 +96,30 @@ ShowSeconds = true; }; NSGlobalDomain = { - AppleShowAllFiles = true; - AppleICUForce24HourTime = true; - AppleTemperatureUnit = "Celsius"; - AppleMeasurementUnits = "Centimeters"; - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.NSGlobalDomain + AppleShowAllFiles = true; # Show hidden files everywhere + AppleICUForce24HourTime = true; # Use 24-hour time format + AppleTemperatureUnit = "Celsius"; # Use Celsius for temperature + AppleMeasurementUnits = "Centimeters"; # Use metric measurements + AppleKeyboardUIMode = 3; # Enable full keyboard access + ApplePressAndHoldEnabled = false; # Disable press-and-hold for accented characters + AppleScrollerPagingBehavior = true; # Jump to the spot clicked on scroll bar + AppleShowScrollBars = "WhenScrolling"; # Show scroll bars when scrolling + InitialKeyRepeat = 15; # Fast key repeat initial delay + KeyRepeat = 2; # Fast key repeat rate + NSAutomaticCapitalizationEnabled = false; # Disable automatic capitalization + NSAutomaticDashSubstitutionEnabled = false; # Disable smart dashes + NSAutomaticPeriodSubstitutionEnabled = false; # Disable period substitution + NSAutomaticQuoteSubstitutionEnabled = false; # Disable smart quotes + NSAutomaticSpellingCorrectionEnabled = false; # Disable auto-correct + NSDocumentSaveNewDocumentsToCloud = false; # Save to disk by default + NSNavPanelExpandedStateForSaveMode = true; # Expand save panel by default + NSNavPanelExpandedStateForSaveMode2 = true; # Expand save panel by default + NSTableViewDefaultSizeMode = 2; # Use medium size for table views + NSTextShowsControlCharacters = true; # Show control characters in text + NSUseAnimatedFocusRing = false; # Disable animated focus ring + NSWindowResizeTime = 0.001; # Fast window resize animations + PMPrintingExpandedStateForPrint = true; # Expand print panel by default + PMPrintingExpandedStateForPrint2 = true; # Expand print panel by default }; screencapture.location = "~/Desktop"; # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.screencapture From 530ffb9c4964e4e771c74547ff538dc58b9a6e9a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:09:12 +0000 Subject: [PATCH 3/3] Complete screen capture, screensaver, SMB, universal access, and window manager configs Co-authored-by: LarsArtmann <23587853+LarsArtmann@users.noreply.github.com> --- dotfiles/nix/system.nix | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/dotfiles/nix/system.nix b/dotfiles/nix/system.nix index 220de48..8aa5800 100644 --- a/dotfiles/nix/system.nix +++ b/dotfiles/nix/system.nix @@ -121,10 +121,22 @@ PMPrintingExpandedStateForPrint = true; # Expand print panel by default PMPrintingExpandedStateForPrint2 = true; # Expand print panel by default }; - screencapture.location = "~/Desktop"; + screencapture = { + location = "~/Desktop"; # Default screenshot location + disable-shadow = false; # Include shadows in window screenshots + include-date = true; # Include date in screenshot filename + show-thumbnail = true; # Show thumbnail after taking screenshot + type = "png"; # Screenshot file format + }; # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.screencapture - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.screensaver - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.smb + screensaver = { + askForPassword = true; # Require password after screensaver + askForPasswordDelay = 0; # Require password immediately + }; + smb = { + NetBIOSName = "LarsMac"; # NetBIOS name for SMB sharing + ServerDescription = "Lars's Mac"; # Description for SMB server + }; SoftwareUpdate.AutomaticallyInstallMacOSUpdates = false; spaces.spans-displays = null; @@ -136,8 +148,21 @@ TrackpadThreeFingerDrag = false; # Disable three finger drag }; - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.universalaccess - # TODO: ADD https://mynixos.com/nix-darwin/options/system.defaults.WindowManager + universalaccess = { + closeViewScrollWheelToggle = false; # Disable scroll wheel zoom toggle + closeViewZoomFollowsFocus = false; # Zoom doesn't follow keyboard focus + mouseDriverCursorSize = 1.0; # Normal cursor size + reduceMotion = false; # Allow motion and animations + reduceTransparency = false; # Allow transparency effects + }; + + WindowManager = { + EnableStandardClickToShowDesktop = false; # Disable click desktop to show desktop + StandardHideDesktopIcons = false; # Show desktop icons + StandardHideWidgets = true; # Hide widgets by default + StageManagerHideDesktopIcons = false; # Show desktop icons in Stage Manager + GloballyEnabled = false; # Disable Stage Manager globally + }; }; keyboard = {