flake/hosts/aristotle/home/xdg-mime.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-02 13:31:34 +00:00
{lib, ...}: {
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
2023-09-19 00:17:43 +00:00
xdg.mimeApps = {
enable = true;
2023-12-02 13:31:34 +00:00
defaultApplications =
{
"inode/directory" = ["org.gnome.Nautilus.desktop"];
}
### Browser
// lib.genAttrs [
"text/html"
"x-scheme-handler/http"
"x-scheme-handler/https"
"x-scheme-handler/about"
"x-scheme-handler/unknown"
2024-06-14 23:25:48 +00:00
] (_n: ["firefox.desktop"])
2023-12-02 13:31:34 +00:00
### Audio player
// lib.genAttrs [
"audio/aac"
"audio/flac"
"audio/mpeg"
"audio/ogg"
"audio/wav"
2024-06-14 23:25:48 +00:00
] (_n: ["io.bassi.Amberol.desktop"])
2023-12-02 13:31:34 +00:00
### Image viewer
// lib.genAttrs [
"image/gif"
"image/jpeg"
"image/png"
"image/webp"
2023-12-16 07:22:27 +00:00
] (_n: ["org.gnome.Loupe.desktop"])
2023-12-02 14:16:33 +00:00
### Video player
// lib.genAttrs [
"video/mp4"
"video/mpeg"
"video/webm"
2023-12-16 07:22:27 +00:00
] (_n: ["mpv.desktop"])
### Code editor
// lib.genAttrs [
"text/css"
"text/html"
"text/javascript"
"text/plain"
2024-06-14 23:25:48 +00:00
] (_n: ["nvim.desktop"]);
2023-09-19 00:17:43 +00:00
};
}