/ darwinModules / desktop.nix
desktop.nix
 1  { pkgs, ... }:
 2  {
 3    # dock
 4    system.defaults.dock = {
 5      autohide = true;
 6      autohide-delay = 0.1;
 7      autohide-time-modifier = 0.6;
 8      show-recents = false;
 9      wvous-br-corner = 14;
10      wvous-tr-corner = 12;
11      wvous-tl-corner = 11;
12  
13      persistent-apps = [
14        "/System/Applications/Calendar.app"
15        "/System/Applications/Reminders.app"
16        "/System/Applications/Messages.app"
17        "/System/Applications/Mail.app"
18        "/System/Applications/System Settings.app"
19        "/Applications/Claude.app"
20        "/Applications/Slack.app"
21        "/Applications/Zen.app"
22        "${pkgs.firefox-bin}/Applications/Firefox.app"
23        "${pkgs.obsidian}/Applications/Obsidian.app"
24        "${pkgs.ghostty-bin}/Applications/Ghostty.app"
25        "/Applications/KakaoTalk.app"
26      ];
27    };
28  
29    # control center
30    system.defaults.controlcenter = {
31      BatteryShowPercentage = true;
32      Bluetooth = true;
33    };
34  
35    system.defaults.loginwindow.GuestEnabled = false;
36  
37    # finder
38    system.defaults.finder = {
39      FXPreferredViewStyle = "clmv";
40      ShowPathbar = true;
41      ShowStatusBar = true;
42      _FXSortFoldersFirst = true;
43      _FXSortFoldersFirstOnDesktop = true;
44      NewWindowTarget = "Home";
45    };
46    system.defaults.CustomUserPreferences."com.apple.finder" = {
47      ShowExternalHardDrivesOnDesktop = false;
48      ShowRemovableMediaOnDesktop = false;
49      WarnOnEmptyTrash = false;
50    };
51  }