60 lines
2.2 KiB
Nix
60 lines
2.2 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.5.8.1/helium-0.5.8.1-x86_64.AppImage";
|
|
sha256 = "sha256-d8kwLEU6qgEgp7nlEwdfRevB1JrbEKHRe8+GhGpGUig=";
|
|
};
|
|
})
|
|
];
|
|
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" ];
|
|
};
|
|
}
|