From 36c082be2b7050ccb15a5123dfd443306d77bbfb Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 3 Nov 2024 14:44:02 -0500 Subject: [PATCH] Services: fix missing Jellyfin binaries; set default permissions for Media folders --- modules/services/jellyfin.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/services/jellyfin.nix b/modules/services/jellyfin.nix index cabda67..c7ba5bd 100644 --- a/modules/services/jellyfin.nix +++ b/modules/services/jellyfin.nix @@ -84,15 +84,19 @@ in }; }; - # Install packages for plugins - environment.systemPackages = with pkgs; [ - id3v2 - yt-dlp - ]; - systemd.services = { - jellyfin.unitConfig.RequiresMountsFor = cfg.home; + jellyfin = { + # Install packages for plugins + path = with pkgs; [ + id3v2 + yt-dlp + ]; + unitConfig.RequiresMountsFor = cfg.home; + }; nginx.wants = [ config.systemd.services.jellyfin.name ]; }; + + # Set permissions for media folders + systemd.tmpfiles.rules = [ "Z /storage/Media 6775 aires media - -" ]; }; }