12b69102d9
- Add Helium browser as an AppImage and include it in system packages. - Rename fluxer package into the appimages module and update imports. - Add `SUPER+H` keybinding to launch Helium and `SUPER+CONTROL+T` for tsukimi. - Change web‑app desktop entries to use Helium instead of Chromium. - Disable ungoogled‑chromium and ChatGPT modules on the laptop host. - Fix a minor typo in a comment within hardware.nix.
38 lines
1.3 KiB
Nix
38 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
fetchurl,
|
|
}: let
|
|
pname = "helium";
|
|
version = "0.11.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/imputnet/helium-linux/releases/download/0.11.7.1/helium-0.11.7.1-x86_64.AppImage";
|
|
sha256 = "sha256-qzc135IP5F2btxtOMUGMz+0azJhYL9KI0lcPG2KjcxU=";
|
|
};
|
|
appimageContents = appimageTools.extract {inherit pname version src;};
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
# mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/256x256/apps/${pname}.png \
|
|
$out/share/icons/hicolor/256x256/apps/${pname}.png
|
|
# substituteInPlace $out/share/applications/${pname}.desktop \
|
|
# --replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Helium browser";
|
|
homepage = "https://github.com/imputnet/helium";
|
|
license = licenses.agpl3Plus;
|
|
platforms = ["x86_64-linux"];
|
|
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
|
|
maintainers = with lib.maintainers; [garand_plg];
|
|
};
|
|
}
|
|
# https://github.com/imputnet/helium-linux/releases/download/0.11.7.1/helium-0.11.7.1-x86_64.AppImage
|
|
|