2017-05-13 23:00:29 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-03-11 02:24:26 +00:00
|
|
|
system.defaults.NSGlobalDomain.AppleShowAllFiles = true;
|
2020-11-15 06:51:54 +00:00
|
|
|
system.defaults.NSGlobalDomain.AppleEnableMouseSwipeNavigateWithScrolls = false;
|
|
|
|
system.defaults.NSGlobalDomain.AppleEnableSwipeNavigateWithScrolls = false;
|
2018-01-04 02:59:50 +00:00
|
|
|
system.defaults.NSGlobalDomain.AppleFontSmoothing = 1;
|
|
|
|
system.defaults.NSGlobalDomain.AppleKeyboardUIMode = 3;
|
|
|
|
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = true;
|
|
|
|
system.defaults.NSGlobalDomain.AppleShowAllExtensions = true;
|
|
|
|
system.defaults.NSGlobalDomain.AppleShowScrollBars = "Always";
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
|
2022-01-25 04:06:13 +00:00
|
|
|
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = false;
|
2018-01-04 02:59:50 +00:00
|
|
|
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = true;
|
|
|
|
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
|
|
|
|
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
|
|
|
|
system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = 2;
|
|
|
|
system.defaults.NSGlobalDomain.NSTextShowsControlCharacters = true;
|
|
|
|
system.defaults.NSGlobalDomain.NSUseAnimatedFocusRing = false;
|
|
|
|
system.defaults.NSGlobalDomain.NSScrollAnimationEnabled = true;
|
|
|
|
system.defaults.NSGlobalDomain.NSWindowResizeTime = "0.01";
|
|
|
|
system.defaults.NSGlobalDomain.InitialKeyRepeat = 10;
|
2017-05-13 23:00:29 +00:00
|
|
|
system.defaults.NSGlobalDomain.KeyRepeat = 1;
|
2018-01-04 02:59:50 +00:00
|
|
|
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = true;
|
|
|
|
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint2 = true;
|
2019-07-22 15:05:48 +00:00
|
|
|
system.defaults.NSGlobalDomain."com.apple.keyboard.fnState" = true;
|
2018-01-04 02:59:50 +00:00
|
|
|
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = true;
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.trackpad.trackpadCornerClickBehavior" = 1;
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.springing.enabled" = true;
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.springing.delay" = "0.0";
|
|
|
|
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = true;
|
2019-08-19 14:02:59 +00:00
|
|
|
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" = "/System/Library/Sounds/Funk.aiff";
|
2018-01-01 00:20:27 +00:00
|
|
|
system.defaults.dock.autohide-delay = "0.24";
|
2017-05-13 23:00:29 +00:00
|
|
|
system.defaults.dock.orientation = "left";
|
2018-03-01 20:41:38 +00:00
|
|
|
system.defaults.screencapture.location = "/tmp";
|
2018-01-17 22:10:57 +00:00
|
|
|
system.defaults.smb.NetBIOSName = "IMAC-000000";
|
|
|
|
system.defaults.smb.ServerDescription = ''Darwin\\\\U2019s iMac'';
|
2021-12-24 22:48:08 +00:00
|
|
|
system.defaults.universalaccess.reduceTransparency = true;
|
|
|
|
system.defaults.universalaccess.closeViewScrollWheelToggle = true;
|
|
|
|
system.defaults.universalaccess.closeViewZoomFollowsFocus = true;
|
2022-03-11 02:53:55 +00:00
|
|
|
system.defaults.ActivityMonitor.ShowCategory = 103;
|
|
|
|
system.defaults.ActivityMonitor.IconType = 3;
|
|
|
|
system.defaults.ActivityMonitor.SortColumn = "CPUUsage";
|
|
|
|
system.defaults.ActivityMonitor.SortDirection = 0;
|
|
|
|
system.defaults.ActivityMonitor.OpenMainWindow = true;
|
2017-05-13 23:00:29 +00:00
|
|
|
|
|
|
|
test = ''
|
2018-01-17 22:10:57 +00:00
|
|
|
echo >&2 "checking defaults write in /activate"
|
|
|
|
grep "defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server 'NetBIOSName' -string 'IMAC-000000'" ${config.out}/activate
|
|
|
|
grep "defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server 'ServerDescription' -string 'Darwin.*s iMac'" ${config.out}/activate
|
|
|
|
|
|
|
|
echo >&2 "checking defaults write in /activate-user"
|
2022-03-11 02:24:26 +00:00
|
|
|
grep "defaults write -g 'AppleShowAllFiles' -bool YES" ${config.out}/activate-user
|
2020-11-15 06:51:54 +00:00
|
|
|
grep "defaults write -g 'AppleEnableMouseSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'AppleEnableSwipeNavigateWithScrolls' -bool NO" ${config.out}/activate-user
|
2018-01-04 02:59:50 +00:00
|
|
|
grep "defaults write -g 'AppleFontSmoothing' -int 1" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'AppleKeyboardUIMode' -int 3" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'ApplePressAndHoldEnabled' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'AppleShowAllExtensions' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'AppleShowScrollBars' -string 'Always'" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSAutomaticCapitalizationEnabled' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSAutomaticDashSubstitutionEnabled' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSAutomaticPeriodSubstitutionEnabled' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSAutomaticQuoteSubstitutionEnabled' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSAutomaticSpellingCorrectionEnabled' -bool NO" ${config.out}/activate-user
|
2022-01-25 04:06:13 +00:00
|
|
|
grep "defaults write -g 'NSAutomaticWindowAnimationsEnabled' -bool NO" ${config.out}/activate-user
|
2018-01-04 02:59:50 +00:00
|
|
|
grep "defaults write -g 'NSDisableAutomaticTermination' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSDocumentSaveNewDocumentsToCloud' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode2' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSTableViewDefaultSizeMode' -int 2" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSTextShowsControlCharacters' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSUseAnimatedFocusRing' -bool NO" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSScrollAnimationEnabled' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'NSWindowResizeTime' -float 0.01" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'InitialKeyRepeat' -int 10" ${config.out}/activate-user
|
2017-05-13 23:00:29 +00:00
|
|
|
grep "defaults write -g 'KeyRepeat' -int 1" ${config.out}/activate-user
|
2018-01-04 02:59:50 +00:00
|
|
|
grep "defaults write -g 'PMPrintingExpandedStateForPrint' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'PMPrintingExpandedStateForPrint2' -bool YES" ${config.out}/activate-user
|
2019-07-22 15:05:48 +00:00
|
|
|
grep "defaults write -g 'com.apple.keyboard.fnState' -bool YES" ${config.out}/activate-user
|
2018-01-04 02:59:50 +00:00
|
|
|
grep "defaults write -g 'com.apple.mouse.tapBehavior' -int 1" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'com.apple.trackpad.enableSecondaryClick' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'com.apple.trackpad.trackpadCornerClickBehavior' -int 1" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'com.apple.springing.enabled' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'com.apple.springing.delay' -float 0.0" ${config.out}/activate-user
|
|
|
|
grep "defaults write -g 'com.apple.swipescrolldirection' -bool YES" ${config.out}/activate-user
|
2019-08-19 14:02:59 +00:00
|
|
|
grep "defaults write .GlobalPreferences 'com.apple.sound.beep.sound' -string '/System/Library/Sounds/Funk.aiff'" ${config.out}/activate-user
|
2018-01-01 00:20:27 +00:00
|
|
|
grep "defaults write com.apple.dock 'autohide-delay' -float 0.24" ${config.out}/activate-user
|
2018-03-01 20:41:38 +00:00
|
|
|
grep "defaults write com.apple.dock 'orientation' -string 'left'" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.screencapture 'location' -string '/tmp'" ${config.out}/activate-user
|
2021-12-24 22:48:08 +00:00
|
|
|
grep "defaults write com.apple.universalaccess 'reduceTransparency' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.universalaccess 'closeViewScrollWheelToggle' -bool YES" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.universalaccess 'closeViewZoomFollowsFocus' -bool YES" ${config.out}/activate-user
|
2022-03-11 02:53:55 +00:00
|
|
|
grep "defaults write com.apple.ActivityMonitor 'ShowCategory' -int 103" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.ActivityMonitor 'IconType' -int 3" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.ActivityMonitor 'SortColumn' -string 'CPUUsage'" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.ActivityMonitor 'SortDirection' -int 0" ${config.out}/activate-user
|
|
|
|
grep "defaults write com.apple.ActivityMonitor 'OpenMainWindow' -bool YES" ${config.out}/activate-user
|
2017-05-13 23:00:29 +00:00
|
|
|
'';
|
|
|
|
}
|