1
0

system.nix 2.8 KB

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