test helium

This commit is contained in:
2026-03-09 11:45:56 +00:00
parent 8bd2cb2112
commit b55c7a382d
5 changed files with 37 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
{inputs,}: { {inputs,...}: {
flake.nixosModules.browsers = {pkgs,...}: { flake.nixosModules.browsers = {pkgs,...}: {
programs.firefox.enable = true; programs.firefox.enable = true;
} };
} }
+1
View File
@@ -2,6 +2,7 @@
flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
self.nixosModules.overlay
self.nixosModules.nixos-host self.nixosModules.nixos-host
self.nixosModules.ui self.nixosModules.ui
self.nixosModules.packages self.nixosModules.packages
+9
View File
@@ -0,0 +1,9 @@
{ inputs, ... }: {
flake.nixosModules.overlay = { pkgs, ... }: {
nixpkgs.overlays = [
(final: prev: {
helium = pkgs.callPackage ../pkgs/helium.nix { };
})
];
};
}
+3
View File
@@ -21,6 +21,9 @@
quickshell quickshell
rofi rofi
slack slack
feishin
nixd
helium
]; ];
}; };
} }
+22
View File
@@ -0,0 +1,22 @@
{ pkgs, ... }:
pkgs.appimageTools.wrapType2 rec {
pname = "helium";
version = "0.9.4.1";
src = pkgs.fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
hash = "sha256-N5gdWuxOrIudJx/4nYo4/SKSxakpTFvL4zzByv6Cnug=";
};
extraInstallCommands =
let
contents = pkgs.appimageTools.extract { inherit pname version src; };
in
''
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
cp -r ${contents}/usr/share/icons $out/share
'';
}