xdg.mime.defaultApplications
NixOS option
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
declared in: nixos/modules/config/xdg/mime.nixView source on NixOS/nixpkgs →{
"application/pdf" = "firefox.desktop";
"image/*" = [
"sxiv.desktop"
"gimp.desktop"
];
}