From 9949b2ab99d20b6a85ef97bedbd66f7d6201ff59 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 20 Feb 2025 22:59:19 +0100 Subject: marvin: manage macos `defaults` in home-manager --- user/marvin.nix | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'user') diff --git a/user/marvin.nix b/user/marvin.nix index 098b5f61..c74e621c 100644 --- a/user/marvin.nix +++ b/user/marvin.nix @@ -73,4 +73,71 @@ }; }; + targets.darwin.defaults = { + NSGlobalDomain = { + AppleKeyboardUIMode = 2; + ApplePressAndHoldEnabled = false; + AppleShowScrollBars = "Always"; + }; + "com.apple.controlcenter" = { + "NSStatusItem Visible Sound" = true; + "NSStatusItem Visible FocusModes" = true; + }; + "com.apple.dock" = { + autohide = true; + autohide-delay = 0.05; + autohide-time-modifier = 0.12; + expose-animation-duration = 0.5; + launchanim = false; + mineffect = "scale"; + minimize-to-application = true; + scroll-to-open = true; + show-process-indicators = false; + static-only = true; + }; + "com.apple.finder" = { + _FXSortFoldersFirst = true; + AppleShowAllExtensions = true; + FXDefaultSearchScope = "SCcf"; # current folder + FXEnableExtensionChangeWarning = false; + FXPreferredViewStyle = "clmv"; # column view + FXRemoveOldTrashItems = true; + NewWindowTarget = "Home"; + NSDocumentSaveNewDocumentsToCloud = false; + }; + "com.apple.menuextra.clock" = + let + # if-space = 0; + always = 1; + never = 2; + in + { + Show24Hour = true; + ShowDate = never; + }; + "com.apple.hitoolbox" = { + AppleFnUsageType = "Do Nothing"; + }; + "com.apple.multitouchtouchpad" = { + TrackpadThreeFingerTapGesture = 2; # Lookup + }; + "com.apple.mouse" = { + linear = true; + }; + "com.apple.safari" = { + ShowFullURLInSmartSearchField = true; + }; + "com.apple.screensaver" = { + askForPasswordDelay = 60; + }; + "com.apple.siri" = { + StatusMenuVisible = false; + }; + "com.apple.textedit" = { + RichText = false; + }; + "com.apple.timemachine" = { + DoNotOfferNewDisksForBackup = true; + }; + }; } -- cgit 1.4.1