{ config, pkgs, lib, ... }: { system.activationScripts.extraUserActivation.text = '' # Set defaults for panes in Finder's "Get Info" defaults write com.apple.finder FXInfoPanesExpanded -dict \ General -bool true \ OpenWith -bool true \ Privileges -bool true \ Preview -bool false ''; system.defaults.CustomUserPreferences = { # Avoid creating .DS_Store files on network or USB volumes "com.apple.desktopservices" = { DSDontWriteNetworkStores = true; DSDontWriteUSBStores = true; }; # Automatically open a new Finder window when a volume is mounted "com.apple.finder".OpenWindowForNewRemovableDisk = true; "com.apple.frameworks.diskimages" = { auto-open-ro-root = true; auto-open-rw-root = true; }; "com.apple.finder" = { # Set defaults for panes in Finder's "Get Info" #FXInfoPanesExpanded = { # General = true; # OpenWith = true; # Privileges = true; # Preview = false; #}; # disable animation when opening the info window in finder (CMD + I) DisableAllAnimations = true; # keep folders on top when sorting by name "_FXSortFoldersFirst" = true; # Set $HOME as the default location for new Finder windows NewWindowTarget = "PfLo"; NewWindowTargetPath = "file://${config.home-manager.users.katja.home.homeDirectory}"; }; }; system.defaults = { NSGlobalDomain = { AppleShowAllExtensions = true; # Save to disk (not to iCloud!) by default NSDocumentSaveNewDocumentsToCloud = false; # Expand save panel by default NSNavPanelExpandedStateForSaveMode = true; NSNavPanelExpandedStateForSaveMode2 = true; # Enable spring loading for directories "com.apple.springing.enabled" = true; # Remove the spring loading delay for directories "com.apple.springing.delay" = 0.0; }; LaunchServices = { # disable "Application Downloaded from Internet" popup LSQuarantine = false; }; finder = { #allow quitting the finder QuitMenuItem = true; # always show file-extensions AppleShowAllExtensions = true; # No icons on desktop CreateDesktop = false; # show statusbar at the bottom of the finder window ShowStatusBar = true; # no brotkrümel in finder pls ShowPathbar = false; # default view style ("icnv" = Icon view, "Nlsv" = List view, "clmv" = Column View, "Flwv" = Gallery View) FXPreferredViewStyle = "Nlsv"; # default search scope ("SCcf" = current folder; null = This Mac) FXDefaultSearchScope = "SCcf"; # no warning when changing the file extension FXEnableExtensionChangeWarning = false; }; }; }