all repos — nixfiles @ cc1bae580ce23164093b0e2a59dd91044ea74ae7

System and user configuration, managed by nix and home-manager

marvin: configure macOS settings (aka defaults)
Alan Pearce alan@alanpearce.eu
Sun, 17 Nov 2024 15:58:25 +0100
commit

cc1bae580ce23164093b0e2a59dd91044ea74ae7

parent

a2ce781816d5e2c5d61ab1dfe5c2d210298f3358

1 files changed, 49 insertions(+), 0 deletions(-)

jump to
M system/marvin.nixsystem/marvin.nix
@@ -49,4 +49,53 @@ supportedFeatures = [ ];       }
     ];
   };
+
+  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;
+    };
+  };
 }