xdg.mime.defaultApplications

Sets the default applications for given mimetypes. See the specifications for more information. Globs in all variations are supported.

Type
attribute set of (string or ((list of string) or string) convertible to it)
Default
{ }
Example
{
  "application/pdf" = "firefox.desktop";
  "image/*" = [
    "sxiv.desktop"
    "gimp.desktop"
  ];
}
Declared
<nixpkgs/nixos/modules/config/xdg/mime.nix>