mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 00:58:12 +09:00
mac
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
lib,
|
||||
primaryUser,
|
||||
...
|
||||
}:
|
||||
{
|
||||
system.defaults.dock = {
|
||||
# Finder and Trash are managed by macOS and do not belong in this list.
|
||||
persistent-apps = [
|
||||
"/Applications/Google Chrome.app"
|
||||
"/Users/${primaryUser}/Applications/Home Manager Apps/Zed.app"
|
||||
"/Users/${primaryUser}/Applications/Home Manager Apps/Visual Studio Code.app"
|
||||
"/Applications/Slack.app"
|
||||
"/Applications/Vesktop.app"
|
||||
"/Applications/Ghostty.app"
|
||||
];
|
||||
persistent-others = [ ];
|
||||
show-recents = false;
|
||||
};
|
||||
|
||||
# Homebrew installs casks after defaults are written. Refresh the Dock only
|
||||
# after both Homebrew and Home Manager have finished activating.
|
||||
system.activationScripts.postActivation.text = lib.mkAfter ''
|
||||
run sudo --user=${lib.escapeShellArg primaryUser} /usr/bin/killall Dock >/dev/null 2>&1 || true
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
system.defaults.trackpad = {
|
||||
Clicking = true;
|
||||
TrackpadRightClick = true;
|
||||
TrackpadCornerSecondaryClick = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user