From cc1bae580ce23164093b0e2a59dd91044ea74ae7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 17 Nov 2024 15:58:25 +0100 Subject: marvin: configure macOS settings (aka defaults) --- system/marvin.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/system/marvin.nix b/system/marvin.nix index cc02a202..1907aa39 100644 --- a/system/marvin.nix +++ b/system/marvin.nix @@ -49,4 +49,53 @@ } ]; }; + + system.defaults = { + dock = { + launchanim = false; + autohide = true; + autohide-delay = 0.05; + autohide-time-modifier = 0.12; + mineffect = "scale"; + minimize-to-application = true; + show-process-indicators = false; + scroll-to-open = true; + expose-animation-duration = 0.5; + }; + finder = { + QuitMenuItem = true; + NewWindowTarget = "Home"; + _FXSortFoldersFirst = true; + FXDefaultSearchScope = "SCcf"; # current folder + FXPreferredViewStyle = "clmv"; # column view + FXRemoveOldTrashItems = true; + FXEnableExtensionChangeWarning = false; + }; + NSGlobalDomain = { + AppleShowScrollBars = "Always"; + }; + screensaver = { + askForPasswordDelay = 60; + }; + menuExtraClock = + let + if-space = 0; + always = 1; + never = 2; + in + { + Show24Hour = true; + ShowDate = never; + }; + hitoolbox = { + AppleFnUsageType = "Do Nothing"; + }; + trackpad = { + TrackpadThreeFingerTapGesture = 2; # Lookup + }; + controlcenter = { + Sound = true; + FocusModes = true; + }; + }; } -- cgit 1.4.1