mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
feat: update macOS's system config
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
neovim
|
neovim
|
||||||
git
|
git
|
||||||
nushell # my custom shell
|
nushell # my custom shell
|
||||||
|
gnugrep # replacee macos's grep
|
||||||
|
gnutar # replacee macos's tar
|
||||||
];
|
];
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
@@ -42,8 +44,6 @@
|
|||||||
|
|
||||||
# homebrew need to be installed manually, see https://brew.sh
|
# homebrew need to be installed manually, see https://brew.sh
|
||||||
homebrew = {
|
homebrew = {
|
||||||
# TODO Homebrew install takes a long time,
|
|
||||||
# So only enable this when you make changes.
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
onActivation = {
|
onActivation = {
|
||||||
|
|||||||
@@ -24,8 +24,10 @@
|
|||||||
|
|
||||||
# customize dock
|
# customize dock
|
||||||
dock = {
|
dock = {
|
||||||
autohide = true;
|
autohide = true; # automatically hide and show the dock
|
||||||
show-recents = false; # disable recent apps
|
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(触发角, 鼠标移动到屏幕角落时触发的动作)
|
# customize Hot Corners(触发角, 鼠标移动到屏幕角落时触发的动作)
|
||||||
wvous-tl-corner = 2; # top-left - Mission Control
|
wvous-tl-corner = 2; # top-left - Mission Control
|
||||||
@@ -78,7 +80,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# customize settings that not supported by nix-darwin directly
|
# 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 = {
|
CustomUserPreferences = {
|
||||||
|
".GlobalPreferences" = {
|
||||||
|
# automatically switch to a new space when switching to the application
|
||||||
|
AppleSpacesSwitchOnActivate = true;
|
||||||
|
};
|
||||||
NSGlobalDomain = {
|
NSGlobalDomain = {
|
||||||
# Add a context menu item for showing the Web Inspector in web views
|
# Add a context menu item for showing the Web Inspector in web views
|
||||||
WebKitDeveloperExtras = true;
|
WebKitDeveloperExtras = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user