From 64192b41b034e5ae7877b6d3f429965cb53cb899 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 4 Jun 2026 18:51:22 +0200 Subject: chore: replace jellyfin-mpv-shim with jellyfin-desktop --- modules/programs/jellyfin-desktop.nix | 24 ++++++++++++++++ modules/programs/jellyfin-mpv-shim.nix | 47 ------------------------------- modules/users/schererleander/hm-linux.nix | 2 +- 3 files changed, 25 insertions(+), 48 deletions(-) create mode 100644 modules/programs/jellyfin-desktop.nix delete mode 100644 modules/programs/jellyfin-mpv-shim.nix (limited to 'modules') diff --git a/modules/programs/jellyfin-desktop.nix b/modules/programs/jellyfin-desktop.nix new file mode 100644 index 0000000..6c24b7c --- /dev/null +++ b/modules/programs/jellyfin-desktop.nix @@ -0,0 +1,24 @@ +{ + flake.modules.homeManager.jellyfin-desktop = + { pkgs, ... }: + + # Fix no video https://github.com/nixos/nixpkgs/issues/519073 + let + jellyfin-desktop-gbm-off = pkgs.symlinkJoin { + name = "jellyfin-desktop-gbm-off"; + paths = [ pkgs.jellyfin-desktop ]; + + nativeBuildInputs = [ pkgs.makeWrapper ]; + + postBuild = '' + wrapProgram $out/bin/jellyfin-desktop \ + --set QTWEBENGINE_FORCE_USE_GBM 0 + ''; + }; + in + { + home.packages = [ + jellyfin-desktop-gbm-off + ]; + }; +} diff --git a/modules/programs/jellyfin-mpv-shim.nix b/modules/programs/jellyfin-mpv-shim.nix deleted file mode 100644 index b4306c2..0000000 --- a/modules/programs/jellyfin-mpv-shim.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - flake.modules.homeManager.jellyfin-mpv-shim = - { - lib, - ... - }: - { - systemd.user.services.jellyfin-mpv-shim.Service.Environment = [ - "ENABLE_HDR_WSI=1" - ]; - - # mpvConfig only supports flat key=value; write full mpv.conf to include profile sections - xdg.configFile."jellyfin-mpv-shim/mpv.conf".text = '' - vo=gpu-next - gpu-api=vulkan - hwdec=vaapi - target-colorspace-hint=yes - target-contrast=inf - target-peak=500 - hdr-compute-peak=yes - deband=yes - video-sync=display-resample - - [sdr-to-hdr] - profile-cond=p["video-params/gamma"] ~= nil and p["video-params/gamma"] ~= "pq" and p["video-params/gamma"] ~= "hlg" - profile-restore=copy-equal - inverse-tone-mapping=yes - tone-mapping=spline - tone-mapping-mode=rgb - gamut-mapping-mode=clip - target-trc=pq - target-prim=bt.2020 - ''; - - services.jellyfin-mpv-shim = { - enable = true; - settings = { - player_name = "mpv-shim"; - allow_transcode_to_h265 = true; - }; - mpvBindings = { - UP = "add chapter 1"; - DOWN = "add chapter -1"; - }; - }; - }; -} diff --git a/modules/users/schererleander/hm-linux.nix b/modules/users/schererleander/hm-linux.nix index 6e0ca60..52bf07d 100644 --- a/modules/users/schererleander/hm-linux.nix +++ b/modules/users/schererleander/hm-linux.nix @@ -8,7 +8,7 @@ anki nextcloud-client vlc - jellyfin-mpv-shim + jellyfin-desktop libreoffice wine ]; -- cgit v1.3.1