Services: fix missing Jellyfin binaries; set default permissions for Media folders
This commit is contained in:
parent
c0c9b21e20
commit
36c082be2b
|
@ -84,15 +84,19 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services = {
|
||||||
|
jellyfin = {
|
||||||
# Install packages for plugins
|
# Install packages for plugins
|
||||||
environment.systemPackages = with pkgs; [
|
path = with pkgs; [
|
||||||
id3v2
|
id3v2
|
||||||
yt-dlp
|
yt-dlp
|
||||||
];
|
];
|
||||||
|
unitConfig.RequiresMountsFor = cfg.home;
|
||||||
systemd.services = {
|
};
|
||||||
jellyfin.unitConfig.RequiresMountsFor = cfg.home;
|
|
||||||
nginx.wants = [ config.systemd.services.jellyfin.name ];
|
nginx.wants = [ config.systemd.services.jellyfin.name ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set permissions for media folders
|
||||||
|
systemd.tmpfiles.rules = [ "Z /storage/Media 6775 aires media - -" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue