feat: update macOS's system config

This commit is contained in:
Ryan Yin
2023-08-01 10:37:04 +08:00
parent 08d8c4cbc5
commit 7c9cb5156f
2 changed files with 11 additions and 4 deletions

View File

@@ -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 = {

View File

@@ -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;