From 5736c8ccf2a1590ad8c61ac24ed7820dd73c622b Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sun, 1 Feb 2026 18:22:18 +0100 Subject: [PATCH] jellyfin on gpu Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- nixos/amd-graphics.nix | 11 +++++++++++ server-modules/arr.nix | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 nixos/amd-graphics.nix diff --git a/nixos/amd-graphics.nix b/nixos/amd-graphics.nix new file mode 100644 index 0000000..c2886a9 --- /dev/null +++ b/nixos/amd-graphics.nix @@ -0,0 +1,11 @@ +{pkgs, ...}: { + hardware.graphics = { + enable = true; + extraPackages = with pkgs; [ + rocmPackages.clr.icd + # Support VA-API pour AMD + libvdpau-va-gl + libva-vdpau-driver + ]; + }; +} diff --git a/server-modules/arr.nix b/server-modules/arr.nix index decaecc..760e71e 100644 --- a/server-modules/arr.nix +++ b/server-modules/arr.nix @@ -50,6 +50,8 @@ in { }; }; + users.users.jellyfin.extraGroups = ["video" "render"]; + services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress = { "media.hadi.diy" = "http://localhost:8096"; "demandemedia.hadi.diy" = "http://localhost:5055";