flake/darwin/profiles/desktop/system/system.nix

98 lines
3.7 KiB
Nix
Raw Normal View History

{...}: {
2023-09-19 23:05:27 +00:00
system.defaults = {
2023-10-05 10:09:04 +00:00
# Apple... Do I really have to change literally
2023-09-20 01:30:29 +00:00
# every setting in macOS to make it actually usable.
2023-10-05 10:09:04 +00:00
#
2023-09-20 01:30:29 +00:00
# Through this... you will see why I say macOS is a terriable mess.
2023-10-05 10:09:04 +00:00
#
2023-09-19 23:05:27 +00:00
# NOTE: default of those options is `null` (unmanaged)
2023-09-20 01:30:29 +00:00
# https://github.com/mathiasbynens/dotfiles/blob/main/.macos for references
### Inputs
".GlobalPreferences"."com.apple.mouse.scaling" = "-1"; # Disable mouse acceleration
trackpad = {
Clicking = true;
TrackpadRightClick = true;
};
### Finder
2023-09-19 23:05:27 +00:00
finder = {
_FXShowPosixPathInTitle = false;
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
CreateDesktop = false;
FXDefaultSearchScope = "SCcf"; # "SCcf" = Current folder
2023-09-19 23:05:27 +00:00
FXEnableExtensionChangeWarning = false;
FXPreferredViewStyle = "Nlsv"; # "icnv" = Icon view, "Nlsv" = List view, "clmv" = Column View, "Flwv" = Gallery View
2023-09-19 23:05:27 +00:00
QuitMenuItem = true;
ShowPathbar = true;
ShowStatusBar = false;
};
### Login window
loginwindow = {
autoLoginUser = "Off";
DisableConsoleAccess = true;
GuestEnabled = false;
};
### Finder menu
2023-09-19 23:05:27 +00:00
menuExtraClock = {
IsAnalog = false;
Show24Hour = false;
ShowAMPM = true;
ShowDate = 0; # 0 = show, 1, 2 = don't show
2023-09-19 23:05:27 +00:00
ShowDayOfMonth = true;
ShowDayOfWeek = true;
ShowSeconds = false;
};
### Misc
2023-09-20 01:30:29 +00:00
NSGlobalDomain = {
"com.apple.keyboard.fnState" = true;
"com.apple.mouse.tapBehavior" = 1;
"com.apple.sound.beep.feedback" = 0;
"com.apple.springing.enabled" = true;
"com.apple.swipescrolldirection" = true; # Natrual scrolling
2023-09-20 01:30:29 +00:00
"com.apple.trackpad.enableSecondaryClick" = true;
"com.apple.trackpad.trackpadCornerClickBehavior" = null; # ??? "null or value 1 (singular enum)"
2023-09-20 01:30:29 +00:00
#"com.apple.trackpad.scaling" = -1;
_HIHideMenuBar = false;
AppleEnableMouseSwipeNavigateWithScrolls = true; # Magic Mouse
AppleEnableSwipeNavigateWithScrolls = true; # Trackpad
AppleFontSmoothing = 1; # https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501
2023-09-20 01:30:29 +00:00
AppleICUForce24HourTime = false;
AppleInterfaceStyle = "Dark"; # "null or value "Dark" (singular enum)"
2023-09-20 01:30:29 +00:00
AppleInterfaceStyleSwitchesAutomatically = false;
AppleKeyboardUIMode = 3; # ??? "null or value 3 (singular enum)"
AppleMeasurementUnits = "Centimeters"; # "null or one of "Centimeters", "Inches""
ApplePressAndHoldEnabled = false; # https://stackoverflow.com/questions/33152551/how-can-i-disable-applepressandholdenabled-for-a-specific-application-repeat#33497193
2023-09-20 01:30:29 +00:00
AppleScrollerPagingBehavior = false;
#AppleShowAllExtensions = true; # Dupelicate?
#AppleShowAllFiles = true;
AppleShowScrollBars = "Always";
AppleTemperatureUnit = "Celsius"; # "null or one of "Celsius", "Fahrenheit""
2023-09-20 01:30:29 +00:00
#AppleWindowTabbingMode # ?
2023-09-22 22:31:10 +00:00
InitialKeyRepeat = 32;
KeyRepeat = 2;
2023-09-20 01:30:29 +00:00
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
2023-09-20 01:30:29 +00:00
#NSAutomaticWindowAnimationsEnabled
NSDisableAutomaticTermination = true;
NSDocumentSaveNewDocumentsToCloud = false;
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
NSScrollAnimationEnabled = true;
#NSTableViewDefaultSizeMode
NSTextShowsControlCharacters = true;
NSUseAnimatedFocusRing = false;
NSWindowResizeTime = 0.001;
PMPrintingExpandedStateForPrint = true;
PMPrintingExpandedStateForPrint2 = true;
};
2023-09-19 22:50:52 +00:00
};
}