diff options
author | Minijackson <minijackson@riseup.net> | 2022-06-09 09:53:20 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2022-06-09 09:53:20 +0200 |
commit | 90bcf7f981dfe4fb36c4cd594b3275fb96a041db (patch) | |
tree | ad368912cb78dc1d58ca7fe24f6554a907509910 /usecases/server/jellyfin.nix | |
parent | 52c3be5235f2bfed1c924a843ae795e35fdf2b42 (diff) | |
download | nixos-config-reborn-master.tar.gz nixos-config-reborn-master.zip |
jellyfin: fix hardware acceleration, remove uncompatible additional restrictionsmaster
Diffstat (limited to 'usecases/server/jellyfin.nix')
-rw-r--r-- | usecases/server/jellyfin.nix | 16 |
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 | } |