| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- {
- nix.enable = true;
- system = {
- primaryUser = "thomas";
- keyboard = {
- enableKeyMapping = true;
- userKeyMapping = [
- {
- # map caps lock to skhd leader
- HIDKeyboardModifierMappingSrc = 30064771129;
- HIDKeyboardModifierMappingDst = 30064771298;
- }
- ];
- };
- 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";
- wvous-bl-corner = 10; # put display to sleep
- wvous-br-corner = 14; # 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;
- }
|