xdg.mime.addedAssociations

NixOS option

Adds associations between mimetypes and applications. 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";
  "text/*" = [
    "nvim.desktop"
    "codium.desktop"
  ];
}
declared in: nixos/modules/config/xdg/mime.nixView source on NixOS/nixpkgs →