about summary refs log tree commit diff
path: root/modules/nixos/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/common/xdg.nix44
1 files changed, 31 insertions, 13 deletions
diff --git a/modules/nixos/common/xdg.nix b/modules/nixos/common/xdg.nix
index fb762ab..b02c0ae 100644
--- a/modules/nixos/common/xdg.nix
+++ b/modules/nixos/common/xdg.nix
@@ -42,47 +42,65 @@ with lib; {
     (mkIf this.isHeadful {
       mimeApps = {
         enable = true;
+        # https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
         defaultApplications = mkMerge (mapAttrsToList
           (n: v: genAttrs v (_: ["${n}.desktop"]))
           {
             emacsclient = [
               "application/json"
+              "application/ld+json"
               "application/vnd.ms-publisher"
+              "application/x-c"
               "application/x-desktop"
-              "application/x-shellscript"
-              "application/x-trash"
-              "application/x-wine-extension-ini"
+              "application/x-httpd-php"
+              "application/x-sh"
+              "application/x-tex"
+              "application/xhtml+xml"
               "application/xml"
+              "text/css"
+              "text/csv"
+              "text/javascript"
               "text/markdown"
               "text/plain"
+              "text/x-lisp"
             ];
             firefox = [
               "text/html"
               "x-scheme-handler/http"
               "x-scheme-handler/https"
             ];
-            imv = [
-              "image/bmp"
-              "image/gif"
-              "image/jpeg"
-              "image/jpg"
-              "image/png"
-              "image/svg+xml"
-              "image/tiff"
-              "image/webp"
-            ];
             mpv = [
+              "audio/3gpp"
+              "audio/3gpp2"
               "audio/aac"
               "audio/flac"
               "audio/mp3"
+              "audio/mpeg"
               "audio/ogg"
+              "audio/opus"
               "audio/wav"
               "audio/webm"
+              "image/avif"
+              "image/bmp"
+              "image/gif"
+              "image/jpeg"
+              "image/jpg"
+              "image/png"
+              "image/tiff"
+              "image/vnd.microsoft.icon"
+              "image/webp"
               "video/mkv"
+              "video/mp2t"
               "video/mp4"
+              "video/mpeg"
               "video/ogg"
               "video/webm"
               "video/x-matroska"
+              "video/x-msvideo"
+            ];
+            "org.pwmt.zathura" = [
+              "application/pdf"
+              "application/epub+zip"
             ];
           });
       };

Consider giving Nix/NixOS a try! <3