From a292f745bf4907f19afb257a32762589f83a1951 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Mon, 29 Dec 2025 18:42:07 +0000 Subject: [PATCH] darwin --- flake.lock | 18 +++++++------- profiles/darwin.nix | 59 ++++++++++++++++++++++++++++++++++++++++++++- profiles/zellij.nix | 21 ++++++++-------- 3 files changed, 77 insertions(+), 21 deletions(-) diff --git a/flake.lock b/flake.lock index 4c35cfa..e613380 100644 --- a/flake.lock +++ b/flake.lock @@ -85,11 +85,11 @@ ] }, "locked": { - "lastModified": 1766784396, - "narHash": "sha256-rIlgatT0JtwxsEpzq+UrrIJCRfVAXgbYPzose1DmAcM=", + "lastModified": 1767028240, + "narHash": "sha256-0/fLUqwJ4Z774muguUyn5t8AQ6wyxlNbHexpje+5hRo=", "owner": "LnL7", "repo": "nix-darwin", - "rev": "f0c8e1f6feb562b5db09cee9fb566a2f989e6b55", + "rev": "c31afa6e76da9bbc7c9295e39c7de9fca1071ea1", "type": "github" }, "original": { @@ -230,11 +230,11 @@ "homebrew-cask": { "flake": false, "locked": { - "lastModified": 1767016898, - "narHash": "sha256-sQmF5gqhM/Nj2sxGw8Ovhbj2QKynH8t6zn6TV5C4I+Y=", + "lastModified": 1767029853, + "narHash": "sha256-fuFaY1tk8NKIcY37faxMX31Ey2j7KeiExjPHSTPP2tM=", "owner": "homebrew", "repo": "homebrew-cask", - "rev": "b3812b4b8b66c290555e3675495c7998f2047c13", + "rev": "43393528ecd3d93f0aa84a24e583ab73e616701d", "type": "github" }, "original": { @@ -246,11 +246,11 @@ "homebrew-core": { "flake": false, "locked": { - "lastModified": 1767021408, - "narHash": "sha256-JgIrdxWNRyqhLVT5gmRdC1Pba0z5wpUcPbNOP3SBm1k=", + "lastModified": 1767031936, + "narHash": "sha256-ovjHkKoEJPQoUM5N8JSfC2CImiPyF1rIN8ZWXR8QBq0=", "owner": "homebrew", "repo": "homebrew-core", - "rev": "4704814740529c3c0168724bd236c82225d2b368", + "rev": "77d8cd3e0ba7e23b5762f1ec31c3d942afc1190c", "type": "github" }, "original": { diff --git a/profiles/darwin.nix b/profiles/darwin.nix index e36cc8f..3416285 100644 --- a/profiles/darwin.nix +++ b/profiles/darwin.nix @@ -13,7 +13,6 @@ defaults = { NSGlobalDomain = { - # null equals "Light" AppleInterfaceStyle = null; AppleShowAllExtensions = true; ApplePressAndHoldEnabled = false; @@ -22,6 +21,17 @@ "com.apple.mouse.tapBehavior" = 1; "com.apple.sound.beep.volume" = 0.0; "com.apple.sound.beep.feedback" = 0; + AppleShowScrollBars = "WhenScrolling"; + NSAutomaticCapitalizationEnabled = false; + NSAutomaticDashSubstitutionEnabled = false; + NSAutomaticPeriodSubstitutionEnabled = false; + NSAutomaticQuoteSubstitutionEnabled = false; + NSAutomaticSpellingCorrectionEnabled = false; + NSDocumentSaveNewDocumentsToCloud = false; + NSNavPanelExpandedStateForSaveMode = true; + NSNavPanelExpandedStateForSaveMode2 = true; + PMPrintingExpandedStateForPrint = true; + PMPrintingExpandedStateForPrint2 = true; }; dock = { @@ -30,16 +40,63 @@ launchanim = true; orientation = "bottom"; tilesize = 60; + minimize-to-application = true; + mru-spaces = false; + expose-group-apps = true; + wvous-bl-corner = 1; + wvous-br-corner = 1; + wvous-tl-corner = 1; + wvous-tr-corner = 1; }; finder = { _FXShowPosixPathInTitle = false; + AppleShowAllFiles = true; + FXEnableExtensionChangeWarning = false; + FXPreferredViewStyle = "clmv"; + ShowPathbar = true; + ShowStatusBar = true; }; trackpad = { Clicking = true; TrackpadThreeFingerDrag = true; }; + + screencapture = { + location = "~/Screenshots"; + type = "png"; + disable-shadow = true; + }; + + screensaver = { + askForPassword = true; + askForPasswordDelay = 5; + }; + + loginwindow = { + GuestEnabled = false; + DisableConsoleAccess = true; + }; + + spaces.spans-displays = false; + + menuExtraClock = { + Show24Hour = true; + ShowDate = 1; + ShowDayOfWeek = true; + ShowSeconds = false; + }; + + CustomUserPreferences = { + "com.apple.desktopservices" = { + DSDontWriteNetworkStores = true; + DSDontWriteUSBStores = true; + }; + "com.apple.AdLib" = { + allowApplePersonalizedAdvertising = false; + }; + }; }; }; diff --git a/profiles/zellij.nix b/profiles/zellij.nix index 1339bd0..396b472 100644 --- a/profiles/zellij.nix +++ b/profiles/zellij.nix @@ -3,18 +3,17 @@ pkgs, ... }: { - programs.zellij = - { - enable = true; - settings = { - theme = "catppuccin-latte"; - default_layout = "default"; - default_shell = "${pkgs.fish}/bin/fish"; - pane_frames = false; - show_startup_tips = false; - show_release_notes = false; - }; + programs.zellij = { + enable = true; + settings = { + theme = "catppuccin-latte"; + default_layout = "default"; + default_shell = "${pkgs.fish}/bin/fish"; + pane_frames = false; + show_startup_tips = false; + show_release_notes = false; }; + }; xdg.configFile."zellij/layouts/default.kdl".text = '' layout {