From 06411e63fb5f7b928c9bdc3898b124e4cffc8c91 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 13 Oct 2024 17:27:50 -0400 Subject: [PATCH] pacifidlog: add hdd-ui --- hosts/pacifidlog/adjustor.nix | 1 - hosts/pacifidlog/default.nix | 12 +++++++++--- hosts/pacifidlog/hhd-ui.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 hosts/pacifidlog/hhd-ui.nix 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