summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-06-09 09:53:20 +0200
committerMinijackson <minijackson@riseup.net>2022-06-09 09:53:20 +0200
commit90bcf7f981dfe4fb36c4cd594b3275fb96a041db (patch)
treead368912cb78dc1d58ca7fe24f6554a907509910
parent52c3be5235f2bfed1c924a843ae795e35fdf2b42 (diff)
downloadnixos-config-reborn-90bcf7f981dfe4fb36c4cd594b3275fb96a041db.tar.gz
nixos-config-reborn-90bcf7f981dfe4fb36c4cd594b3275fb96a041db.zip
jellyfin: fix hardware acceleration, remove uncompatible additional restrictionsmaster
-rw-r--r--usecases/server/jellyfin.nix16
1 files changed, 1 insertions, 15 deletions
diff --git a/usecases/server/jellyfin.nix b/usecases/server/jellyfin.nix
index 7119d38..2875668 100644
--- a/usecases/server/jellyfin.nix
+++ b/usecases/server/jellyfin.nix
@@ -32,7 +32,7 @@ inputs:
32 # TODO: remove when #108224 is merged 32 # TODO: remove when #108224 is merged
33 33
34 # Allows access to drm devices for transcoding with hardware acceleration 34 # Allows access to drm devices for transcoding with hardware acceleration
35 SupplementaryGroups = [ "video" ]; 35 SupplementaryGroups = [ "video" "render" ];
36 # char-drm Allows ffmpeg to transcode with hardware acceleration 36 # char-drm Allows ffmpeg to transcode with hardware acceleration
37 DeviceAllow = lib.mkForce [ "char-drm rw" ]; 37 DeviceAllow = lib.mkForce [ "char-drm rw" ];
38 38
@@ -43,20 +43,6 @@ inputs:
43 # Personal: 43 # Personal:
44 ProtectHome = true; 44 ProtectHome = true;
45 ProtectSystem = "strict"; 45 ProtectSystem = "strict";
46
47 BindReadOnlyPaths = [
48 "/nix/store"
49
50 "/etc/ssl/certs"
51 "/etc/static/ssl/certs"
52
53 "/etc/resolv.conf"
54 ] ++ lib.optional config.hardware.opengl.enable [
55 "/run/opengl-driver"
56 ] ++ config.services.jellyfin.allowedPaths;
57
58 RuntimeDirectory = "jellyfin";
59 RootDirectory = "/run/jellyfin";
60 }; 46 };
61 }; 47 };
62} 48}