(hydrogen/home) add xdg mime types

This commit is contained in:
Laureηt 2023-12-11 14:17:29 +01:00
parent 775fd0c581
commit d5d579e5ad
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 37 additions and 0 deletions

View file

@ -12,5 +12,6 @@
./shell
./vscode
./wayland
./xdg
];
}

View file

@ -0,0 +1,36 @@
{ ... }: {
xdg.mimeApps = {
enable = true;
defaultApplications = {
# librewolf
"text/html" = "librewolf.desktop";
"x-scheme-handler/http" = "librewolf.desktop";
"x-scheme-handler/https" = "librewolf.desktop";
"x-scheme-handler/about" = "librewolf.desktop";
"x-scheme-handler/unknown" = "librewolf.desktop";
"application/pdf" = "librewolf.desktop";
"image/png" = "librewolf.desktop";
"image/jpeg" = "librewolf.desktop";
"image/gif" = "librewolf.desktop";
# 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";
};
};
}