-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem.nix
91 lines (82 loc) · 2.97 KB
/
system.nix
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
_: {
launchd.user.agents."capslock-escape-swap" = {
serviceConfig = {
ProgramArguments =
let
ESC_KEY = "0x700000029";
CAPS_LOCK_KEY = "0x700000039";
in
[
"/usr/bin/hidutil"
"property"
"--set"
''
{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": ${ESC_KEY},
"HIDKeyboardModifierMappingDst": ${CAPS_LOCK_KEY}
},
{
"HIDKeyboardModifierMappingSrc": ${CAPS_LOCK_KEY},
"HIDKeyboardModifierMappingDst": ${ESC_KEY}
}
]}
''
];
RunAtLoad = true;
};
};
system = {
# Global macOS System Settings
defaults = {
LaunchServices.LSQuarantine = false; # Disable Quarantine for Downloaded Applications
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = false;
NSGlobalDomain = {
# Apple menu > System Preferences > Keyboard
KeyRepeat = 2;
AppleMetricUnits = 1; # Use Metric
AppleInterfaceStyleSwitchesAutomatically = true; # Auto Switch Light-Dark Mode
NSAutomaticWindowAnimationsEnabled = false; # Disable opening and closing animation
NSDocumentSaveNewDocumentsToCloud = false; # Disable auto save text files to iCloud
NSAutomaticCapitalizationEnabled = false; # Disable auto capitalization
NSAutomaticSpellingCorrectionEnabled = false; # Disable spell checker
NSAutomaticPeriodSubstitutionEnabled = false; # Disable adding . after pressing space twice
NSAutomaticDashSubstitutionEnabled = false; # Disable "smart" dash substitution
NSAutomaticQuoteSubstitutionEnabled = false; # No "smart" quote substitution
};
menuExtraClock = {
Show24Hour = true; # Use 24 hour clock
ShowSeconds = true; # Show Seconds
ShowDate = 2; # Don't show date (Use Itsycal)
};
finder = {
AppleShowAllFiles = false; # Show all files
AppleShowAllExtensions = true; # Show all file extensions
FXEnableExtensionChangeWarning = false; # Disable Warning for changing extension
FXPreferredViewStyle = "icnv"; # Change the default finder view. “icnv” = Icon view
QuitMenuItem = true; # Allow qutting Finder
ShowPathbar = true; # Show full path at bottom
};
dock = {
autohide = true;
magnification = false;
orientation = "bottom";
show-recents = false; # Show Recently Open
showhidden = true;
tilesize = 65; # Size of Dock Icons
# Disable all Corners, 1 = Disabled
# Top Left
wvous-tl-corner = 1;
# Top Right
wvous-tr-corner = 1;
# Bottom Left
wvous-bl-corner = 1;
# Bottom Right
wvous-br-corner = 1;
};
};
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
stateVersion = 5;
};
}