mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-24 01:41:00 +01:00
feat: update macOS's system config
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user