Skip to content

Commit

Permalink
fix: add yt-dlp to jellyfin service path
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Oct 29, 2023
1 parent 7a6aefa commit 2a82aa7
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions components/mediacenter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in {
group = "mediaoperators";
openFirewall = true;
};
systemd.services.jellyfin.path = [pkgs.yt-dlp]; # required for yt metadata

users.users = {
jellyfin = {
Expand Down Expand Up @@ -99,30 +100,17 @@ in {
enable = true;
user = "bazarr";
group = "bazarr";
};
};

virtualisation.docker.enable = cfg.linux-isos.enable || cfg.youtube.enable;
environment.systemPackages =
[
# for Jellyfin YT metadata plugin
pkgs.yt-dlp
]
[]
++ (
if cfg.linux-isos.enable
then [pkgs.docker-compose pkgsUnstable.recyclarr]
else []
);

virtualisation.oci-containers = mkIf cfg.youtube.enable {
backend = "docker";
containers.yt-dlp = {
image = "ghcr.io/marcopeocchi/yt-dlp-web-ui:latest"; #TODO: pin somehow
ports = ["3033:3033"];
volumes = ["${mediaDir}/videos:/downloads"];
user = config.users.users.youtube.name;
};
};

services.caddy = lib.mkIf config.components.caddy.enable {
virtualHosts = let
endpoints = [
Expand Down

0 comments on commit 2a82aa7

Please sign in to comment.