1
0

system.nix 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. wvous-bl-corner = 10; # put display to sleep
  33. wvous-br-corner = 14; # quick note
  34. wvous-tl-corner = 1; # disabled
  35. wvous-tr-corner = 1; # disabled
  36. };
  37. finder = {
  38. AppleShowAllExtensions = true;
  39. AppleShowAllFiles = true;
  40. CreateDesktop = true;
  41. _FXShowPosixPathInTitle = true;
  42. FXEnableExtensionChangeWarning = false;
  43. FXPreferredViewStyle = "clmv";
  44. QuitMenuItem = true;
  45. ShowPathbar = true;
  46. ShowStatusBar = true;
  47. };
  48. loginwindow = {
  49. DisableConsoleAccess = false;
  50. GuestEnabled = false;
  51. LoginwindowText = null;
  52. PowerOffDisabledWhileLoggedIn = false;
  53. RestartDisabled = false;
  54. RestartDisabledWhileLoggedIn = false;
  55. SHOWFULLNAME = true;
  56. ShutDownDisabled = false;
  57. ShutDownDisabledWhileLoggedIn = false;
  58. SleepDisabled = false;
  59. autoLoginUser = null;
  60. };
  61. NSGlobalDomain = {
  62. AppleInterfaceStyle = "Dark";
  63. AppleKeyboardUIMode = 3;
  64. ApplePressAndHoldEnabled = false;
  65. AppleShowAllExtensions = true;
  66. AppleShowAllFiles = true;
  67. KeyRepeat = 1;
  68. InitialKeyRepeat = 12;
  69. NSAutomaticCapitalizationEnabled = false;
  70. NSDocumentSaveNewDocumentsToCloud = true;
  71. NSNavPanelExpandedStateForSaveMode = true;
  72. NSNavPanelExpandedStateForSaveMode2 = true;
  73. NSWindowResizeTime = 0.001;
  74. PMPrintingExpandedStateForPrint = true;
  75. PMPrintingExpandedStateForPrint2 = true;
  76. # WebKitDeveloperExtras = true;
  77. _HIHideMenuBar = false;
  78. "com.apple.swipescrolldirection" = true;
  79. # "com.apple.BezelServices" = 5;
  80. };
  81. screencapture.location = "/tmp";
  82. screensaver.askForPassword = true;
  83. trackpad = {
  84. ActuationStrength = 0;
  85. Clicking = true;
  86. Dragging = null;
  87. FirstClickThreshold = 1;
  88. SecondClickThreshold = 1;
  89. TrackpadRightClick = null;
  90. TrackpadThreeFingerDrag = true;
  91. };
  92. WindowManager.StageManagerHideWidgets = true;
  93. WindowManager.StandardHideDesktopIcons = true;
  94. WindowManager.StandardHideWidgets = true;
  95. };
  96. rosetta.enable = true;
  97. };
  98. security.pam.services.sudo_local.touchIdAuth = true;
  99. security.pam.enablePamReattach = true;
  100. }