1
0

system.nix 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. system = {
  3. keyboard = {
  4. enableKeyMapping = true;
  5. userKeyMapping = [
  6. {
  7. # map caps lock to skhd leader
  8. HIDKeyboardModifierMappingSrc = 30064771129;
  9. HIDKeyboardModifierMappingDst = 30064771298;
  10. }
  11. ];
  12. };
  13. defaults = {
  14. SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
  15. dock = {
  16. autohide = true;
  17. expose-group-apps = true;
  18. orientation = "bottom";
  19. wvous-bl-corner = 10; # put display to sleep
  20. wvous-br-corner = 14; # quick note
  21. wvous-tl-corner = 1; # disabled
  22. wvous-tr-corner = 1; # disabled
  23. };
  24. finder = {
  25. AppleShowAllExtensions = true;
  26. AppleShowAllFiles = true;
  27. CreateDesktop = true;
  28. _FXShowPosixPathInTitle = true;
  29. FXEnableExtensionChangeWarning = false;
  30. FXPreferredViewStyle = "clmv";
  31. QuitMenuItem = true;
  32. ShowPathbar = true;
  33. ShowStatusBar = true;
  34. };
  35. loginwindow = {
  36. DisableConsoleAccess = false;
  37. GuestEnabled = false;
  38. LoginwindowText = null;
  39. PowerOffDisabledWhileLoggedIn = false;
  40. RestartDisabled = false;
  41. RestartDisabledWhileLoggedIn = false;
  42. SHOWFULLNAME = true;
  43. ShutDownDisabled = false;
  44. ShutDownDisabledWhileLoggedIn = false;
  45. SleepDisabled = false;
  46. autoLoginUser = null;
  47. };
  48. NSGlobalDomain = {
  49. AppleInterfaceStyle = "Dark";
  50. AppleKeyboardUIMode = 3;
  51. ApplePressAndHoldEnabled = false;
  52. AppleShowAllExtensions = true;
  53. AppleShowAllFiles = true;
  54. KeyRepeat = 1;
  55. InitialKeyRepeat = 12;
  56. NSAutomaticCapitalizationEnabled = false;
  57. NSDocumentSaveNewDocumentsToCloud = true;
  58. NSNavPanelExpandedStateForSaveMode = true;
  59. NSNavPanelExpandedStateForSaveMode2 = true;
  60. NSWindowResizeTime = 0.001;
  61. PMPrintingExpandedStateForPrint = true;
  62. PMPrintingExpandedStateForPrint2 = true;
  63. # WebKitDeveloperExtras = true;
  64. _HIHideMenuBar = true;
  65. "com.apple.swipescrolldirection" = true;
  66. # "com.apple.BezelServices" = 5;
  67. };
  68. screencapture.location = "/tmp";
  69. screensaver.askForPassword = true;
  70. trackpad = {
  71. ActuationStrength = 0;
  72. Clicking = true;
  73. Dragging = null;
  74. FirstClickThreshold = 1;
  75. SecondClickThreshold = 1;
  76. TrackpadRightClick = null;
  77. TrackpadThreeFingerDrag = true;
  78. };
  79. WindowManager.StageManagerHideWidgets = true;
  80. WindowManager.StandardHideDesktopIcons = true;
  81. WindowManager.StandardHideWidgets = true;
  82. };
  83. rosetta.enable = true;
  84. };
  85. security.pam.enableSudoTouchIdAuth = true;
  86. security.pam.enablePamReattach = true;
  87. }