From 130b7603dabb1e823aebab0329929499aad3e0cf Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 12 Apr 2025 22:47:45 -0400 Subject: [PATCH] Add more mac defaults --- home/default.nix | 2 +- machines/zelus/configuration.nix | 28 +++++++++++++++++----------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/home/default.nix b/home/default.nix index 92b632f..cdfcca5 100644 --- a/home/default.nix +++ b/home/default.nix @@ -387,7 +387,7 @@ in }; vscode = { - enable = true; + enable = stdenv.isLinux; package = pkgs.vscode; extensions = with pkgs.vscode-extensions; diff --git a/machines/zelus/configuration.nix b/machines/zelus/configuration.nix index e04b16b..0696113 100644 --- a/machines/zelus/configuration.nix +++ b/machines/zelus/configuration.nix @@ -48,15 +48,23 @@ ]; }; - NSGlobalDomain = { - "com.apple.sound.beep.feedback" = 0; - "com.apple.sound.beep.volume" = 0.0; - ApplePressAndHoldEnabled = false; - InitialKeyRepeat = 10; - KeyRepeat = 2; - AppleShowAllExtensions = true; - AppleShowScrollBars = "Automatic"; - }; + NSGlobalDomain.AppleShowAllExtensions = true; + NSGlobalDomain.AppleShowScrollBars = "Always"; + NSGlobalDomain.NSUseAnimatedFocusRing = false; + NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true; + NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true; + NSGlobalDomain.PMPrintingExpandedStateForPrint = true; + NSGlobalDomain.PMPrintingExpandedStateForPrint2 = true; + NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false; + NSGlobalDomain.ApplePressAndHoldEnabled = false; + NSGlobalDomain.InitialKeyRepeat = 25; + NSGlobalDomain.KeyRepeat = 2; + NSGlobalDomain."com.apple.mouse.tapBehavior" = 1; + NSGlobalDomain.NSWindowShouldDragOnGesture = true; + NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false; + LaunchServices.LSQuarantine = false; # disables "Are you sure?" for new apps + loginwindow.GuestEnabled = false; + finder.FXPreferredViewStyle = "Nlsv"; }; security.pam.enableSudoTouchIdAuth = true; @@ -77,7 +85,6 @@ "coreutils" "gnu-sed" "gnu-tar" - "netdata" "node" "oras" "k6" @@ -99,7 +106,6 @@ "mitmproxy" "notunes" "ollama" - "postman" "raycast" "rectangle" "signal"