1
0

system.nix 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. nix.enable = true;
  3. system = {
  4. primaryUser = "thomas";
  5. # INFO: Using Kanata for this now.
  6. # keyboard = {
  7. # enableKeyMapping = true;
  8. # userKeyMapping = [
  9. # # remap caps lock to escape
  10. # { HIDKeyboardModifierMappingSrc = 30064771129; HIDKeyboardModifierMappingDst = 30064771113; }
  11. # # remap left control to left command
  12. # { HIDKeyboardModifierMappingSrc = 30064771296; HIDKeyboardModifierMappingDst = 30064771296; }
  13. # # remap left command to left control
  14. # { HIDKeyboardModifierMappingSrc = 30064771299; HIDKeyboardModifierMappingDst = 30064771296; }
  15. # # remap right command to right control
  16. # { HIDKeyboardModifierMappingSrc = 30064771303; HIDKeyboardModifierMappingDst = 30064771300; }
  17. # ];
  18. # };
  19. defaults = {
  20. # TODO: to make <C-Space> work, we need to disable these
  21. # hotkeys, but I don't know if that's possible with nix-darwin
  22. # Preferences -> Keyboard -> Keyboard Shortcuts -> Input Sources
  23. # "com.apple.symbolichotkeys" = {
  24. # "60" = 0;
  25. # "61" = 0;
  26. # };
  27. SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
  28. dock = {
  29. autohide = true;
  30. expose-group-apps = true;
  31. orientation = "bottom";
  32. enable-spring-load-actions-on-all-items = false;
  33. expose-animation-duration = 0.0;
  34. launchanim = false;
  35. mineffect = null;
  36. mru-spaces = false;
  37. persistent-apps = [ ];
  38. show-recents = false;
  39. static-only = true;
  40. tilesize = 32;
  41. wvous-bl-corner = 10; # put display to sleep
  42. wvous-br-corner = 1; # quick note
  43. wvous-tl-corner = 1; # disabled
  44. wvous-tr-corner = 1; # disabled
  45. };
  46. finder = {
  47. AppleShowAllExtensions = true;
  48. AppleShowAllFiles = true;
  49. CreateDesktop = true;
  50. _FXShowPosixPathInTitle = true;
  51. FXEnableExtensionChangeWarning = false;
  52. FXPreferredViewStyle = "clmv";
  53. QuitMenuItem = true;
  54. ShowPathbar = true;
  55. ShowStatusBar = true;
  56. };
  57. loginwindow = {
  58. DisableConsoleAccess = false;
  59. GuestEnabled = false;
  60. LoginwindowText = null;
  61. PowerOffDisabledWhileLoggedIn = false;
  62. RestartDisabled = false;
  63. RestartDisabledWhileLoggedIn = false;
  64. SHOWFULLNAME = true;
  65. ShutDownDisabled = false;
  66. ShutDownDisabledWhileLoggedIn = false;
  67. SleepDisabled = false;
  68. autoLoginUser = null;
  69. };
  70. NSGlobalDomain = {
  71. AppleInterfaceStyle = "Dark";
  72. AppleKeyboardUIMode = 3;
  73. ApplePressAndHoldEnabled = false;
  74. AppleShowAllExtensions = true;
  75. AppleShowAllFiles = true;
  76. KeyRepeat = 1;
  77. InitialKeyRepeat = 12;
  78. NSAutomaticCapitalizationEnabled = false;
  79. NSDocumentSaveNewDocumentsToCloud = true;
  80. NSNavPanelExpandedStateForSaveMode = true;
  81. NSNavPanelExpandedStateForSaveMode2 = true;
  82. NSWindowResizeTime = 0.001;
  83. PMPrintingExpandedStateForPrint = true;
  84. PMPrintingExpandedStateForPrint2 = true;
  85. # WebKitDeveloperExtras = true;
  86. _HIHideMenuBar = false;
  87. "com.apple.swipescrolldirection" = true;
  88. # "com.apple.BezelServices" = 5;
  89. };
  90. screencapture.location = "/tmp";
  91. screensaver.askForPassword = true;
  92. trackpad = {
  93. ActuationStrength = 0;
  94. Clicking = true;
  95. Dragging = null;
  96. FirstClickThreshold = 1;
  97. SecondClickThreshold = 1;
  98. TrackpadRightClick = null;
  99. TrackpadThreeFingerDrag = true;
  100. };
  101. WindowManager.StageManagerHideWidgets = true;
  102. WindowManager.StandardHideDesktopIcons = true;
  103. WindowManager.StandardHideWidgets = true;
  104. };
  105. rosetta.enable = true;
  106. };
  107. security.pam.services.sudo_local.touchIdAuth = true;
  108. security.pam.enablePamReattach = true;
  109. }