flake/nixos/profiles/common/graphical/home/xdg-mime.nix

49 lines
1.3 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
# Default application associstions
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"
2023-12-16 07:22:27 +00:00
] (_n: ["librewolf.desktop" "firefox.desktop" "chromium-browser.desktop"])
2023-12-02 13:31:34 +00:00
### Audio player
// lib.genAttrs [
"audio/aac"
"audio/flac"
"audio/mpeg"
"audio/ogg"
"audio/wav"
2023-12-16 07:22:27 +00:00
] (_n: ["io.bassi.Amberol.desktop" "mpv.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"
2023-12-16 07:22:27 +00:00
] (_n: ["codium.desktop" "Helix.desktop" "nvim.desktop"]);
2023-09-19 00:17:43 +00:00
};
}