aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/carbon/system/system.nix
blob: 0a53a698d5143bd7496d759cf9adcc3980434cba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{ user, ... }:

{
  time.timeZone = "America/New_York";

  system = {
    stateVersion = 6;
    primaryUser = user;
    startup.chime = true;

    defaults = {
      NSGlobalDomain = {
        AppleInterfaceStyle = "Dark";
        AppleScrollerPagingBehavior = true;
        AppleWindowTabbingMode = "always";
        "com.apple.trackpad.forceClick" = true;
        "com.apple.trackpad.scaling" = 1.0;
        "com.apple.springing.enabled" = true;
        "com.apple.springing.delay" = 0.5;
      };

      dock = {
        autohide = false;
        expose-group-apps = true;
        mineffect = "scale";
        minimize-to-application = true;
        mru-spaces = false;
        show-recents = false;
        persistent-apps = [
          "/Applications/Bitwarden.app"
          "/Applications/Helium.app"
          "/Applications/Discord.app"
          "/Applications/Signal.app"
          "/Applications/Stremio.app"
          "/Applications/Nix Apps/Spotifast.app"
          "/Applications/Delta.app"
          "/Applications/Zed.app"
          "/Applications/Ghostty.app"
          "/Applications/Rex.app"
          "/System/Applications/System Settings.app"
        ];
      };

      finder = {
        AppleShowAllExtensions = true;
        FXRemoveOldTrashItems = true;
        ShowExternalHardDrivesOnDesktop = true;
        ShowHardDrivesOnDesktop = false;
        ShowRemovableMediaOnDesktop = true;
      };

      menuExtraClock = {
        ShowDate = 0;
        ShowDayOfWeek = false;
      };

      screencapture.location = "/Users/${user}/Pictures";
      SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;

      trackpad = {
        Clicking = true;
        TrackpadRightClick = true;
        FirstClickThreshold = 1;
        SecondClickThreshold = 1;
      };

      WindowManager = {
        GloballyEnabled = false;
        AutoHide = true;
        HideDesktop = true;
        StandardHideDesktopIcons = false;
        EnableStandardClickToShowDesktop = false;
      };
    };
  };
}