xdg.mimeApps.defaultApplications

Home-Manager option

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.

type: attribute set of ((list of string) or ((list of string) or string) convertible to it)
Default
{ }
Example
{ "mimetype1" = [ "default1.desktop" "default2.desktop" ]; }
declared in: <home-manager/modules/misc/xdg-mime-apps.nix>source unavailable