From 65319be12b6463cdc65625e787e2af2b4d04d01c Mon Sep 17 00:00:00 2001 From: mikl Date: Wed, 1 Jul 2026 13:04:51 +0300 Subject: [PATCH] feat: sync all current macOS system defaults from running system --- hosts/poppy/system.nix | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/hosts/poppy/system.nix b/hosts/poppy/system.nix index 0cb3bb4..d181b96 100644 --- a/hosts/poppy/system.nix +++ b/hosts/poppy/system.nix @@ -1,7 +1,15 @@ { pkgs, ... }: { system.defaults = { - NSGlobalDomain.AppleInterfaceStyle = "Dark"; - NSGlobalDomain._HIHideMenuBar = false; + NSGlobalDomain = { + AppleInterfaceStyle = "Dark"; + AppleMenuBarVisibleInFullscreen = true; + AppleLanguages = [ "en-US" "ru-US" ]; + AppleMiniaturizeOnDoubleClick = false; + AppleAntiAliasingThreshold = 4; + NSAutomaticCapitalizationEnabled = true; + NSAutomaticPeriodSubstitutionEnabled = true; + NSAutomaticQuoteSubstitutionEnabled = true; + }; CustomUserPreferences = { "com.apple.HIToolbox" = { @@ -60,10 +68,6 @@ }; }; }; - - "NSGlobalDomain" = { - "AppleMenuBarVisibleInFullscreen" = true; - }; }; controlcenter = { @@ -71,9 +75,30 @@ }; trackpad = { + # Clicking Clicking = true; - TrackpadThreeFingerDrag = false; TrackpadRightClick = true; + TrackpadThreeFingerDrag = false; + TrackpadHandResting = true; + DragLock = false; + Dragging = false; + + # Scroll + TrackpadScroll = true; + TrackpadHorizScroll = true; + TrackpadMomentumScroll = true; + + # Gestures + TrackpadPinch = true; + TrackpadRotate = true; + TrackpadThreeFingerTapGesture = 0; + TrackpadTwoFingerDoubleTapGesture = 1; + TrackpadTwoFingerFromRightEdgeSwipeGesture = 3; + TrackpadThreeFingerVertSwipeGesture = 2; + TrackpadFourFingerHorizSwipeGesture = 2; + TrackpadFourFingerVertSwipeGesture = 0; + TrackpadFourFingerPinchGesture = 2; + TrackpadFiveFingerPinchGesture = 2; }; finder = { @@ -81,6 +106,7 @@ ShowPathbar = true; ShowStatusBar = true; FXPreferredViewStyle = "clmv"; + FXPreferredGroupBy = "Date Modified"; NewWindowTarget = "Home"; ShowExternalHardDrivesOnDesktop = false; ShowHardDrivesOnDesktop = false;