{...}: let mkProfiles = profiles: builtins.listToAttrs (map (p: { name = "librewolf-${p}"; value = { exec = "librewolf -P ${p}"; icon = "librewolf"; name = "Librewolf (${p})"; mimeType = [ "text/html" "text/xml" "application/xhtml+xml" "x-scheme-handler/http" "x-scheme-handler/https" "application/x-xpinstall" "application/pdf" "application/json" ]; }; }) profiles); in { xdg.desktopEntries = mkProfiles [ "default" "personal" "work" ]; }