{ config, ... }: let username = config.flake.globalConfig.username; in { flake.modules.darwin.system = { system = { primaryUser = username; stateVersion = 5; activationScripts.postActivation.text = '' /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u ''; defaults = { NSGlobalDomain."com.apple.swipescrolldirection" = false; dock = { autohide = true; autohide-delay = 0.01; autohide-time-modifier = 0.01; expose-group-apps = true; launchanim = false; minimize-to-application = true; orientation = "right"; show-recents = false; persistent-apps = [ "/Applications/Helium.app" "/Applications/Ghostty.app" "/System/Applications/System Settings.app/" ]; persistent-others = [ "/Users/${username}/Downloads" ]; }; finder = { AppleShowAllExtensions = true; CreateDesktop = false; FXEnableExtensionChangeWarning = false; FXPreferredViewStyle = "clmv"; ShowPathbar = true; ShowStatusBar = true; }; loginwindow = { LoginwindowText = "(λ) powered by nix-darwin"; }; menuExtraClock = { Show24Hour = true; ShowDate = 0; }; screencapture = { location = "/Users/${username}/Downloads"; target = "file"; }; spaces.spans-displays = false; }; }; security.pam.services.sudo_local.touchIdAuth = true; }; }