system.nix 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. # TODO: to make <C-Space> work, we need to disable these
  17. # hotkeys, but I don't know if that's possible with nix-darwin
  18. # Preferences -> Keyboard -> Keyboard Shortcuts -> Input Sources
  19. # "com.apple.symbolichotkeys" = {
  20. # "60" = 0;
  21. # "61" = 0;
  22. # };
  23. SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
  24. dock = {
  25. autohide = true;
  26. expose-group-apps = true;
  27. orientation = "bottom";
  28. wvous-bl-corner = 10; # put display to sleep
  29. wvous-br-corner = 14; # quick note
  30. wvous-tl-corner = 1; # disabled
  31. wvous-tr-corner = 1; # disabled
  32. };
  33. finder = {
  34. AppleShowAllExtensions = true;
  35. AppleShowAllFiles = true;
  36. CreateDesktop = true;
  37. _FXShowPosixPathInTitle = true;
  38. FXEnableExtensionChangeWarning = false;
  39. FXPreferredViewStyle = "clmv";
  40. QuitMenuItem = true;
  41. ShowPathbar = true;
  42. ShowStatusBar = true;
  43. };
  44. loginwindow = {
  45. DisableConsoleAccess = false;
  46. GuestEnabled = false;
  47. LoginwindowText = null;
  48. PowerOffDisabledWhileLoggedIn = false;
  49. RestartDisabled = false;
  50. RestartDisabledWhileLoggedIn = false;
  51. SHOWFULLNAME = true;
  52. ShutDownDisabled = false;
  53. ShutDownDisabledWhileLoggedIn = false;
  54. SleepDisabled = false;
  55. autoLoginUser = null;
  56. };
  57. NSGlobalDomain = {
  58. AppleInterfaceStyle = "Dark";
  59. AppleKeyboardUIMode = 3;
  60. ApplePressAndHoldEnabled = false;
  61. AppleShowAllExtensions = true;
  62. AppleShowAllFiles = true;
  63. KeyRepeat = 1;
  64. InitialKeyRepeat = 12;
  65. NSAutomaticCapitalizationEnabled = false;
  66. NSDocumentSaveNewDocumentsToCloud = true;
  67. NSNavPanelExpandedStateForSaveMode = true;
  68. NSNavPanelExpandedStateForSaveMode2 = true;
  69. NSWindowResizeTime = 0.001;
  70. PMPrintingExpandedStateForPrint = true;
  71. PMPrintingExpandedStateForPrint2 = true;
  72. # WebKitDeveloperExtras = true;
  73. _HIHideMenuBar = true;
  74. "com.apple.swipescrolldirection" = true;
  75. # "com.apple.BezelServices" = 5;
  76. };
  77. screencapture.location = "/tmp";
  78. screensaver.askForPassword = true;
  79. trackpad = {
  80. ActuationStrength = 0;
  81. Clicking = true;
  82. Dragging = null;
  83. FirstClickThreshold = 1;
  84. SecondClickThreshold = 1;
  85. TrackpadRightClick = null;
  86. TrackpadThreeFingerDrag = true;
  87. };
  88. WindowManager.StageManagerHideWidgets = true;
  89. WindowManager.StandardHideDesktopIcons = true;
  90. WindowManager.StandardHideWidgets = true;
  91. };
  92. rosetta.enable = true;
  93. };
  94. security.pam.services.sudo_local.touchIdAuth = true;
  95. security.pam.enablePamReattach = true;
  96. }