{ lib, pkgs, ... }: let thunarDesktopOverride = pkgs.makeDesktopItem { name = "thunar"; desktopName = "Files"; genericName = "File Manager"; tryExec = "thunar"; exec = "thunar %U"; icon = "org.xfce.thunar"; categories = [ "Utility" "FileManager" ]; mimeTypes = [ "inode/directory" ]; keywords = [ "folder" "manager" "explorer" "files" ]; startupNotify = true; startupWMClass = "Thunar"; terminal = false; comment = "Browse files"; }; ghosttyDesktopOverride = pkgs.makeDesktopItem { name = "com.mitchellh.ghostty"; desktopName = "Terminal"; genericName = "Terminal Emulator"; exec = "ghostty"; icon = "com.mitchellh.ghostty"; categories = [ "System" "TerminalEmulator" "Utility" ]; terminal = false; comment = "Fast GPU-accelerated terminal"; }; in { environment.systemPackages = lib.mkAfter [ (lib.hiPrio thunarDesktopOverride) (lib.hiPrio ghosttyDesktopOverride) ]; }