diff --git a/hosts/pacifidlog/adjustor.nix b/hosts/pacifidlog/adjustor.nix index bb2685f6..974d8d61 100644 --- a/hosts/pacifidlog/adjustor.nix +++ b/hosts/pacifidlog/adjustor.nix @@ -1,4 +1,3 @@ - { fetchFromGitHub , lib , python3 diff --git a/hosts/pacifidlog/default.nix b/hosts/pacifidlog/default.nix index a938622f..7969d990 100644 --- a/hosts/pacifidlog/default.nix +++ b/hosts/pacifidlog/default.nix @@ -43,9 +43,15 @@ }; }; - environment.variables = { - FLAKE = lib.mkForce "github:alyraffauf/nixcfg/add-pacifidlog"; - GDK_SCALE = "2"; + environment = { + systemPackages = [ + (pkgs.callPackage ./hhd-ui.nix {}) + ]; + + variables = { + FLAKE = lib.mkForce "github:alyraffauf/nixcfg/add-pacifidlog"; + GDK_SCALE = "2"; + }; }; jovian = { diff --git a/hosts/pacifidlog/hhd-ui.nix b/hosts/pacifidlog/hhd-ui.nix new file mode 100644 index 00000000..99d6e793 --- /dev/null +++ b/hosts/pacifidlog/hhd-ui.nix @@ -0,0 +1,27 @@ +{ + fetchFromGitHub, + appimageTools, + fetchurl, + hidapi, + kmod, + lib, + python3, + toybox, +}: +appimageTools.wrapType2 rec { + pname = "hhd-ui"; + version = "3.2.1"; + src = fetchurl { + url = "https://github.com/hhd-dev/hhd-ui/releases/download/v${version}/${pname}.AppImage"; + hash = "sha256-RRXVoeWOO/pR+CAEY0J6Buf/RhA+G0PdxGQVMdAHfwA="; + }; + + meta = with lib; { + homepage = "https://github.com/hhd-dev/hhd-ui/"; + description = "A UI app that can manage Handheld Daemon settings from Steam, the Desktop, and the Web."; + platforms = platforms.linux; + license = licenses.mit; + maintainers = with maintainers; [ harryaskham ]; + mainProgram = "hhd-ui"; + }; +} \ No newline at end of file