Add MIME defaults

This commit is contained in:
Tibo De Peuter 2023-09-15 09:55:49 +02:00
parent aec2ed2303
commit 5ca9ad69cf

View file

@ -57,6 +57,29 @@
}; };
}; };
xdg.mimeApps =
let
browser = "firefox.desktop";
image-viewer = "nsxiv.desktop";
in {
enable = true;
defaultApplications = {
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/chrome" = browser;
"text/html" = browser;
"application/x-extension-htm" = browser;
"application/x-extension-html" = browser;
"application/x-extension-shtml" = browser;
"application/xhtml+xml" = browser;
"application/x-extension-xhtml" = browser;
"application/x-extension-xht" = browser;
"image/jpeg" = image-viewer;
"image/png" = image-viewer;
};
};
}; };
} }