This commit is contained in:
2026-07-27 22:27:49 +09:00
parent ee0bd37915
commit 2a02beda38
7 changed files with 59 additions and 25 deletions
+26
View File
@@ -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
'';
}
+7
View File
@@ -0,0 +1,7 @@
{
system.defaults.trackpad = {
Clicking = true;
TrackpadRightClick = true;
TrackpadCornerSecondaryClick = 0;
};
}