infrastructure/home/desktop/xdg.nix

37 lines
1 KiB
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{...}: {
2023-12-11 13:17:29 +00:00
xdg.mimeApps = {
enable = true;
defaultApplications = {
# firefox
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
"application/pdf" = "firefox.desktop";
"image/png" = "firefox.desktop";
"image/jpeg" = "firefox.desktop";
"image/gif" = "firefox.desktop";
2023-12-11 13:17:29 +00:00
# vscode
"text/plain" = "code.desktop";
"text/x-python" = "code.desktop";
"application/json" = "code.desktop";
"application/yaml" = "code.desktop";
"application/xml" = "code.desktop";
"application/javascript" = "code.desktop";
"text/css" = "code.desktop";
# mpv
"video/mpeg" = "mpv.desktop";
"video/mp4" = "mpv.desktop";
"video/x-matroska" = "mpv.desktop";
# thunderbird
"text/calendar" = "thunderbird.desktop";
"text/x-vcard" = "thunderbird.desktop";
};
};
}