-
Notifications
You must be signed in to change notification settings - Fork 1
/
preferences.nix
62 lines (50 loc) · 2.22 KB
/
preferences.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
{ ... }:
{
# See https://github.com/LnL7/nix-darwin/tree/master/modules/system/defaults
system.defaults = {
# See https://github.com/LnL7/nix-darwin/blob/master/modules/system/defaults/NSGlobalDomain.nix
NSGlobalDomain = {
AppleInterfaceStyle = "Dark";
# Configures the trackpad tab behavior. Mode 1 enables tap to click.
"com.apple.mouse.tapBehavior" = 1;
# Trackpad: map tap with two fingers to secondary click
"com.apple.trackpad.trackpadCornerClickBehavior" = 1;
"com.apple.trackpad.enableSecondaryClick" = true;
# Disable “natural” scrolling
"com.apple.swipescrolldirection" = false;
};
# See https://github.com/LnL7/nix-darwin/blob/master/modules/system/defaults/loginwindow.nix
loginwindow = {
GuestEnabled = false;
};
# See https://github.com/LnL7/nix-darwin/blob/master/modules/system/defaults/trackpad.nix
trackpad = {
# Whether to enable trackpad tap to click. Default is false.
Clicking = true;
# Whether to enable trackpad right click. Default is false.
TrackpadRightClick = true;
};
magicmouse = {
MouseButtonMode = "TwoButton";
};
# See https://github.com/LnL7/nix-darwin/blob/master/modules/system/defaults/finder.nix
finder = {
# Whether to show icons on the desktop or not. Default is true.
CreateDesktop = false;
# Whether to always show file extensions. Default is false.
AppleShowAllExtensions = true;
# Whether to show warnings when changing file extensions. Default is true.
FXEnableExtensionChangeWarning = false;
};
# screencapture = {
# # The filesystem path to which screenshots should be written
# location = "~/Screenshots";
# };
# system.activationScripts.extraUserActivation.text = ''
# defaults write com.knollsoft.Rectangle gapSize -int 10
# osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Users/builditluc/wallpaper.png"'
# ln -sf ${pkgs.callPackage ./custom-pkgs/firefox { } }/Applications/Firefox.app /Applications
# '';
# sudo /usr/bin/sudo /usr/bin/defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool
};
}