···44 variables = {
55 # Do not send analytic data to Homebrew
66 HOMEBREW_NO_ANALYTICS = "1";
77+78 # don't allow insecure redirects
89 HOMEBREW_NO_INSECURE_REDIRECT = "1";
1010+911 # don't show emoji in the output
1012 HOMEBREW_NO_EMOJI = "1";
1313+1114 # I don't need any hints because nix handles homebrew for me
1215 HOMEBREW_NO_ENV_HINTS = "0";
1316 };
+10-4
modules/darwin/hardware/trackpad.nix
···11{
22 system.defaults = {
33- NSGlobalDomain."com.apple.swipescrolldirection" = false; # enable natural scrolling
33+ # enable natural scrolling
44+ NSGlobalDomain."com.apple.swipescrolldirection" = false;
4556 trackpad = {
66- Clicking = true; # enable tap to click
77- TrackpadRightClick = true; # enable two finger right click
88- TrackpadThreeFingerDrag = false; # enable three finger drag, disabled so I can swap workspaces with 3 fingers
77+ # enable tap to click
88+ Clicking = true;
99+1010+ # enable two finger right click
1111+ TrackpadRightClick = true;
1212+1313+ # enable three finger drag, disabled so I can swap workspaces with 3 fingers
1414+ TrackpadThreeFingerDrag = false;
915 };
1016 };
1117}
+21-8
modules/darwin/preferences/clock.nix
···11{
22 system.defaults = {
33- NSGlobalDomain.AppleICUForce24HourTime = false; # use 12 hour time
33+ # use 12 hour time
44+ NSGlobalDomain.AppleICUForce24HourTime = false;
4556 menuExtraClock = {
66- Show24Hour = true; # show 12 hour clock
77- IsAnalog = false; # show digital clock
88- ShowAMPM = true; # show AM/PM
77+ # show 12 hour clock
88+ Show24Hour = true;
99+1010+ # show digital clock
1111+ IsAnalog = false;
1212+1313+ # show AM/PM
1414+ ShowAMPM = true;
9151016 # Show date can imply the result of ShowDayOfMonth, ShowDayOfWeek, and ShowSeconds.
1111- ShowDate = 2; # 0 = Show the date 1 = Don’t show 2 = Don’t show (hides date)
1212- # ShowDayOfMonth = false; # show day of month
1313- # ShowDayOfWeek = false; # show day of week
1414- # ShowSeconds = false; # show seconds
1717+ # 0 = Show the date 1 = Don’t show 2 = Don’t show (hides date)
1818+ ShowDate = 2;
1919+2020+ # show day of month
2121+ # ShowDayOfMonth = false;
2222+2323+ # show day of week
2424+ # ShowDayOfWeek = false;
2525+2626+ # show seconds
2727+ # ShowSeconds = false;
1528 };
1629 };
1730}
+1
modules/darwin/preferences/default.nix
···1515 ./finder.nix # Settings for Finder (file manager)
1616 ./images.nix # Screensaver, screenshots etc
1717 ./login.nix # Settings for the login screen
1818+ ./measurements.nix # Units and measurements
1819 ./misc.nix # Miscellaneous settings
1920 ./sound.nix # Sound settings
2021 ./theme.nix # Theme settings
···11{
22 system.defaults = {
33 finder = {
44- _FXShowPosixPathInTitle = true; # show full path in finder title
55- # FXRemoveOldTrashItems = true; # remove items from trash after 30 days
66- AppleShowAllExtensions = true; # show all file extensions
77- AppleShowAllFiles = true; # show hidden files
88- FXEnableExtensionChangeWarning = false; # disable warning when changing file extension
99- QuitMenuItem = true; # hide the quit button on finder
1010- ShowPathbar = true; # show path bar
1111- ShowStatusBar = true; # show status bar
44+ # show full path in finder title
55+ _FXShowPosixPathInTitle = true;
1261313- # cusomize the desktop
1414- CreateDesktop = false; # disable icons on the desktop
77+ # remove items from trash after 30 days
88+ # FXRemoveOldTrashItems = true;
99+1010+ # show all file extensions
1111+ AppleShowAllExtensions = true;
1212+1313+ # show hidden files
1414+ AppleShowAllFiles = true;
1515+1616+ # disable warning when changing file extension
1717+ FXEnableExtensionChangeWarning = false;
1818+1919+ # hide the quit button on finder
2020+ QuitMenuItem = true;
2121+2222+ # show path bar
2323+ ShowPathbar = true;
2424+2525+ # show status bar
2626+ ShowStatusBar = true;
2727+2828+ # disable icons on the desktop
2929+ CreateDesktop = false;
1530 };
16311732 CustomUserPreferences."com.apple.finder" = {
···2035 ShowMountedServersOnDesktop = true;
2136 ShowRemovableMediaOnDesktop = true;
2237 _FXSortFoldersFirst = true;
3838+2339 # When performing a search, search the current folder by default
2440 FXDefaultSearchScope = "SCcf";
2541 };
+5-2
modules/darwin/preferences/login.nix
···11{
22 system.defaults.loginwindow = {
33- GuestEnabled = false; # disable guest user
44- SHOWFULLNAME = false; # show full name in login window
33+ # disable guest user
44+ GuestEnabled = false;
55+66+ # show full name in login window
77+ SHOWFULLNAME = false;
58 };
69}