From 3b944f4c0cc6bfe1777909aa692028a9df8311ed Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 9 Mar 2022 19:44:06 +0000 Subject: [PATCH 1/2] Jellyfin: Fix NVENC, NVDEC usage by allowing AF_UNIX Fix NVENC, NVDEC usage when transcoding with hardware capabilities --- nixos/modules/services/misc/jellyfin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/jellyfin.nix b/nixos/modules/services/misc/jellyfin.nix index b9d54f27edc2..cc8d6f027b6c 100644 --- a/nixos/modules/services/misc/jellyfin.nix +++ b/nixos/modules/services/misc/jellyfin.nix @@ -84,7 +84,7 @@ in RestrictNamespaces = true; # AF_NETLINK needed because Jellyfin monitors the network connection - RestrictAddressFamilies = [ "AF_NETLINK" "AF_INET" "AF_INET6" ]; + RestrictAddressFamilies = [ "AF_NETLINK" "AF_INET" "AF_INET6" "AF_UNIX" ]; RestrictRealtime = true; RestrictSUIDSGID = true; From 81781c338d94c2a50eb279adcc8f5bcaf4f8f34b Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 10 Mar 2022 00:19:57 +0000 Subject: [PATCH 2/2] Jellyfin: Disable ProtectClock to allow NVENC, NVDEC acceleration --- nixos/modules/services/misc/jellyfin.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/jellyfin.nix b/nixos/modules/services/misc/jellyfin.nix index cc8d6f027b6c..64b74ddd7082 100644 --- a/nixos/modules/services/misc/jellyfin.nix +++ b/nixos/modules/services/misc/jellyfin.nix @@ -73,7 +73,8 @@ in PrivateDevices = true; PrivateUsers = true; - ProtectClock = true; + # Disabled as it does not allow Jellyfin to interface with CUDA devices + # ProtectClock = true; ProtectControlGroups = true; ProtectHostname = true; ProtectKernelLogs = true;