{ config, pkgs, ... }: { #boot.kernelModules = [ "v4l2loopback" ]; #boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; systemd.mounts = [ { what = "/dev/mapper/crypt-media"; where = "/opt/media"; type = "ext4"; } { what = "/dev/mapper/crypt-movies"; where = "/opt/media/media/video/movies"; type = "ext4"; } { what = "/dev/mapper/crypt-tvshows"; where = "/opt/media/media/video/tv-shows"; type = "ext4"; } ]; systemd.services.jellyfin.unitConfig.RequiresMountsFor = [ "/opt/media" "/opt/media/media/video/movies" "/opt/media/media/video/tv-shows" ]; users.users.jellyfin.extraGroups = [ "video" ]; environment.systemPackages = [ pkgs.jellyfin-ffmpeg ]; services.jellyfin = { enable = true; openFirewall = true; }; }