diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index af3818be..7b93cc2c 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -20,6 +20,8 @@ neovim git nushell # my custom shell + gnugrep # replacee macos's grep + gnutar # replacee macos's tar ]; environment.variables.EDITOR = "nvim"; @@ -42,8 +44,6 @@ # homebrew need to be installed manually, see https://brew.sh homebrew = { - # TODO Homebrew install takes a long time, - # So only enable this when you make changes. enable = true; onActivation = { diff --git a/modules/darwin/system.nix b/modules/darwin/system.nix index 5687c2f1..d9bd3d96 100644 --- a/modules/darwin/system.nix +++ b/modules/darwin/system.nix @@ -24,8 +24,10 @@ # customize dock dock = { - autohide = true; - show-recents = false; # disable recent apps + autohide = true; # automatically hide and show the dock + show-recents = false; # do not show recent apps in dock + # do not automatically rearrange spaces based on most recent use. + mru-spaces = false; # customize Hot Corners(触发角, 鼠标移动到屏幕角落时触发的动作) wvous-tl-corner = 2; # top-left - Mission Control @@ -78,7 +80,12 @@ }; # customize settings that not supported by nix-darwin directly + # see the source code of https://github.com/rgcr/m-cli to get all the available options CustomUserPreferences = { + ".GlobalPreferences" = { + # automatically switch to a new space when switching to the application + AppleSpacesSwitchOnActivate = true; + }; NSGlobalDomain = { # Add a context menu item for showing the Web Inspector in web views WebKitDeveloperExtras = true;