| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- {
- nix.enable = true;
- system = {
- primaryUser = "thomas";
- # INFO: Using Kanata for this now.
- # keyboard = {
- # enableKeyMapping = true;
- # userKeyMapping = [
- # # remap caps lock to escape
- # { HIDKeyboardModifierMappingSrc = 30064771129; HIDKeyboardModifierMappingDst = 30064771113; }
- # # remap left control to left command
- # { HIDKeyboardModifierMappingSrc = 30064771296; HIDKeyboardModifierMappingDst = 30064771296; }
- # # remap left command to left control
- # { HIDKeyboardModifierMappingSrc = 30064771299; HIDKeyboardModifierMappingDst = 30064771296; }
- # # remap right command to right control
- # { HIDKeyboardModifierMappingSrc = 30064771303; HIDKeyboardModifierMappingDst = 30064771300; }
- # ];
- # };
- defaults = {
- # TODO: to make <C-Space> work, we need to disable these
- # hotkeys, but I don't know if that's possible with nix-darwin
- # Preferences -> Keyboard -> Keyboard Shortcuts -> Input Sources
- # "com.apple.symbolichotkeys" = {
- # "60" = 0;
- # "61" = 0;
- # };
- SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
- dock = {
- autohide = true;
- expose-group-apps = true;
- orientation = "bottom";
- enable-spring-load-actions-on-all-items = false;
- expose-animation-duration = 0.0;
- launchanim = false;
- mineffect = null;
- mru-spaces = false;
- persistent-apps = [ ];
- show-recents = false;
- static-only = true;
- tilesize = 32;
- wvous-bl-corner = 10; # put display to sleep
- wvous-br-corner = 1; # quick note
- wvous-tl-corner = 1; # disabled
- wvous-tr-corner = 1; # disabled
- };
- finder = {
- AppleShowAllExtensions = true;
- AppleShowAllFiles = true;
- CreateDesktop = true;
- _FXShowPosixPathInTitle = true;
- FXEnableExtensionChangeWarning = false;
- FXPreferredViewStyle = "clmv";
- QuitMenuItem = true;
- ShowPathbar = true;
- ShowStatusBar = true;
- };
- loginwindow = {
- DisableConsoleAccess = false;
- GuestEnabled = false;
- LoginwindowText = null;
- PowerOffDisabledWhileLoggedIn = false;
- RestartDisabled = false;
- RestartDisabledWhileLoggedIn = false;
- SHOWFULLNAME = true;
- ShutDownDisabled = false;
- ShutDownDisabledWhileLoggedIn = false;
- SleepDisabled = false;
- autoLoginUser = null;
- };
- NSGlobalDomain = {
- AppleInterfaceStyle = "Dark";
- AppleKeyboardUIMode = 3;
- ApplePressAndHoldEnabled = false;
- AppleShowAllExtensions = true;
- AppleShowAllFiles = true;
- KeyRepeat = 1;
- InitialKeyRepeat = 12;
- NSAutomaticCapitalizationEnabled = false;
- NSDocumentSaveNewDocumentsToCloud = true;
- NSNavPanelExpandedStateForSaveMode = true;
- NSNavPanelExpandedStateForSaveMode2 = true;
- NSWindowResizeTime = 0.001;
- PMPrintingExpandedStateForPrint = true;
- PMPrintingExpandedStateForPrint2 = true;
- # WebKitDeveloperExtras = true;
- _HIHideMenuBar = false;
- "com.apple.swipescrolldirection" = true;
- # "com.apple.BezelServices" = 5;
- };
- screencapture.location = "/tmp";
- screensaver.askForPassword = true;
- trackpad = {
- ActuationStrength = 0;
- Clicking = true;
- Dragging = null;
- FirstClickThreshold = 1;
- SecondClickThreshold = 1;
- TrackpadRightClick = null;
- TrackpadThreeFingerDrag = true;
- };
- WindowManager.StageManagerHideWidgets = true;
- WindowManager.StandardHideDesktopIcons = true;
- WindowManager.StandardHideWidgets = true;
- };
- rosetta.enable = true;
- };
- security.pam.services.sudo_local.touchIdAuth = true;
- security.pam.enablePamReattach = true;
- }
|