summaryrefslogtreecommitdiff
path: root/modules/darwin/profiles/default.nix
blob: c18f2bb5aea77c147e45f765ecd34f7f2843a070 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.profiles.default;
in {
  imports = [
    ./headful.nix
  ];

  config = mkIf cfg.enable {
    hm.home.packages = with pkgs; [m-cli];

    system = {
      defaults = {
        CustomUserPreferences = {};

        ActivityMonitor = {};

        NSGlobalDomain = {
          AppleEnableMouseSwipeNavigateWithScrolls = true;
          AppleEnableSwipeNavigateWithScrolls = true;

          AppleInterfaceStyle = null;

          AppleShowAllExtensions = true;
          AppleShowAllFiles = true;

          InitialKeyRepeat = 15;
          KeyRepeat = 2;

          NSAutomaticCapitalizationEnabled = false;
          NSAutomaticDashSubstitutionEnabled = false;
          NSAutomaticPeriodSubstitutionEnabled = false;
          NSAutomaticQuoteSubstitutionEnabled = false;
          NSAutomaticSpellingCorrectionEnabled = false;

          # Make function keys to work as they should.
          "com.apple.keyboard.fnState" = true;

          # Disable the absolutely retarded "natural" scrolling.
          "com.apple.swipescrolldirection" = false;
        };

        dock = {
          orientation = "bottom";
          tilesize = 18;

          # Don't change these options because this will disallow rearranging
          # shortcuts.
          show-recents = true;
          static-only = false;

          # Disable hot corners.
          wvous-bl-corner = 1;
          wvous-br-corner = 1;
          wvous-tl-corner = 1;
          wvous-tr-corner = 1;
        };

        finder = {
          AppleShowAllExtensions = true;
          AppleShowAllFiles = true;

          CreateDesktop = true;

          FXDefaultSearchScope = "SCcf";
          FXEnableExtensionChangeWarning = false;
          FXPreferredViewStyle = "clmv";

          ShowStatusBar = false;
          ShowPathbar = true;
          _FXShowPosixPathInTitle = true;
        };

        trackpad = {
          Clicking = true;
          Dragging = false;
        };
      };

      keyboard = {
        enableKeyMapping = true;
        nonUS.remapTilde = true;
        remapCapsLockToControl = false;
        remapCapsLockToEscape = true;
        swapLeftCommandAndLeftAlt = false;
      };
    };
  };
}