2024-08-25 15:02:35 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
{
|
2024-07-23 16:14:27 +00:00
|
|
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
|
|
xdg.mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications =
|
|
|
|
{
|
2024-08-25 15:02:35 +00:00
|
|
|
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
|
2024-07-23 16:14:27 +00:00
|
|
|
}
|
|
|
|
### Browser
|
|
|
|
// lib.genAttrs [
|
|
|
|
"text/html"
|
|
|
|
"x-scheme-handler/http"
|
|
|
|
"x-scheme-handler/https"
|
|
|
|
"x-scheme-handler/about"
|
|
|
|
"x-scheme-handler/unknown"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "firefox.desktop" ])
|
2024-07-23 16:14:27 +00:00
|
|
|
### Audio player
|
|
|
|
// lib.genAttrs [
|
|
|
|
"audio/aac"
|
|
|
|
"audio/flac"
|
|
|
|
"audio/mpeg"
|
|
|
|
"audio/ogg"
|
|
|
|
"audio/wav"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "io.bassi.Amberol.desktop" ])
|
2024-07-23 16:14:27 +00:00
|
|
|
### Image viewer
|
|
|
|
// lib.genAttrs [
|
|
|
|
"image/gif"
|
|
|
|
"image/jpeg"
|
|
|
|
"image/png"
|
|
|
|
"image/webp"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "org.gnome.Loupe.desktop" ])
|
2024-07-23 16:14:27 +00:00
|
|
|
### Video player
|
|
|
|
// lib.genAttrs [
|
|
|
|
"video/mp4"
|
|
|
|
"video/mpeg"
|
|
|
|
"video/webm"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "mpv.desktop" ])
|
2024-07-23 16:14:27 +00:00
|
|
|
### Code editor
|
|
|
|
// lib.genAttrs [
|
|
|
|
"text/css"
|
|
|
|
"text/html"
|
|
|
|
"text/javascript"
|
|
|
|
"text/plain"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "nvim.desktop" ])
|
2024-07-26 06:36:27 +00:00
|
|
|
### Mail client
|
|
|
|
// lib.genAttrs [
|
|
|
|
"x-scheme-handler/mailto"
|
|
|
|
"x-scheme-handler/mid"
|
2024-08-25 15:02:35 +00:00
|
|
|
] (_n: [ "thunderbird.desktop" ]);
|
2024-07-23 16:14:27 +00:00
|
|
|
};
|
|
|
|
}
|