dotfiles/home/helium/default.nix

59 lines
1.9 KiB
Nix

{pkgs, ...}: {
home.packages = [
(pkgs.appimageTools.wrapType2 {
pname = "Helium";
version = "0.4.7.1";
src = pkgs.fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/0.9.4.1/helium-0.9.4.1-x86_64.AppImage";
sha256 = "sha256-N5gdWuxOrIudJx/4nYo4/SKSxakpTFvL4zzByv6Cnug=";
};
})
];
xdg.desktopEntries = {
helium = {
name = "Helium";
genericName = "Web Browser";
comment = "Access the Internet";
exec = "Helium --enable-features=TouchpadOverscrollHistoryNavigation %U";
startupNotify = true;
terminal = false;
icon = "chromium";
type = "Application";
categories = ["Network" "WebBrowser"];
mimeType = [
"x-scheme-handler/webcal"
"application/pdf"
"application/rdf+xml"
"application/rss+xml"
"application/xhtml+xml"
"application/xhtml_xml"
"application/xml"
"image/gif"
"image/jpeg"
"image/png"
"image/webp"
"text/html"
"text/xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
];
};
};
xdg.mimeApps.defaultApplications = {
"application/json" = ["helium.desktop"];
"application/x-extension-htm" = ["helium.desktop"];
"application/x-extension-html" = ["helium.desktop"];
"application/x-extension-shtml" = ["helium.desktop"];
"application/x-extension-xhtml" = ["helium.desktop"];
"application/x-extension-xht" = ["helium.desktop"];
"application/xhtml+xml" = ["helium.desktop"];
"text/html" = ["helium.desktop"];
"text/xml" = ["helium.desktop"];
"x-scheme-handler/about" = ["helium.desktop"];
"x-scheme-handler/ftp" = ["helium.desktop"];
"x-scheme-handler/http" = ["helium.desktop"];
"x-scheme-handler/unknown" = ["helium.desktop"];
"x-scheme-handler/https" = ["helium.desktop"];
};
}