{ config, lib, ... }: { system.defaults.screencapture = { location = "~/Documents/Screenshots"; # Set default screenshot location # Add more screencapture settings here }; system.defaults.trackpad = { TrackpadThreeFingerDrag = true; FirstClickThreshold = 1; SecondClickThreshold = 1; # Set up your trackpad preferences here }; system.keyboard = { swapLeftCtrlAndFn = false; # Swap left control and function keys enableKeyMapping = true; # Enable key mapping # Set up your keyboard preferences here }; system.defaults.WindowManager.EnableStandardClickToShowDesktop = false; # Disable/Enable standard click to show desktop # You can add more Mac defaults here as well... system.activationScripts.postUserActivation.text = '' # Following line should allow us to avoid a logout/login cycle /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u ''; # Activate settings after user activation }