xdg.mimeApps.defaultApplications
Home-Manager option
attribute set of ((list of string) or ((list of string) or string) convertible to it)
The default application to be used for a given mimetype. This is, for instance, the one that will be started when double-clicking on a file in a file manager. If the application is no longer installed, the next application in the list is attempted, and so on. Keys ending in * are treated as prefix globs. They are expanded against all MIME types known to the shared-mime-info database before being written to mimeapps.list. Exact keys take precedence over glob matches, e.g., "text/html" overrides "text/*".
type: attribute set of ((list of string) or ((list of string) or string) convertible to it)Default
{ }Example
declared in: <home-manager/modules/misc/xdg/mime-apps.nix>source unavailable{ mimetype1 = [ "default1.desktop" "default2.desktop" ]; "text/*" = "default3.desktop"; "text/html" = "default4.desktop"; }