Updates
This commit is contained in:
parent
59f721f4d7
commit
bdb4ad8160
3 changed files with 11 additions and 17 deletions
|
|
@ -4,6 +4,7 @@ let
|
|||
cfg = config.homelab.apps.jellyfin;
|
||||
|
||||
networkName = "jellyfin";
|
||||
inherit (config.homelab.fileSystems) media;
|
||||
|
||||
UID = 3008;
|
||||
GID = config.users.groups.media.gid;
|
||||
|
|
@ -12,6 +13,11 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
homelab = {
|
||||
fileSystems.media.video = {
|
||||
enable = true;
|
||||
permissions = [ "read" ];
|
||||
};
|
||||
|
||||
users = {
|
||||
apps.enable = true;
|
||||
media.enable = true;
|
||||
|
|
@ -32,18 +38,6 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
"/srv/video" = {
|
||||
device = "192.168.0.11:/mnt/SMALL/MEDIA/VIDEO";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"ro"
|
||||
"nfsvers=4.2"
|
||||
"async" "soft"
|
||||
"timeo=100" "retry=50" "actimeo=1800" "lookupcache=all"
|
||||
"nosuid" "tcp"
|
||||
];
|
||||
};
|
||||
|
||||
"/srv/homevideo" = {
|
||||
device = "192.168.0.11:/mnt/BIG/MEDIA/HOMEVIDEO/ARCHIVE";
|
||||
fsType = "nfs";
|
||||
|
|
@ -101,7 +95,7 @@ in {
|
|||
virtualisation.oci-containers.containers = {
|
||||
jellyfin = {
|
||||
hostname = "jellyfin";
|
||||
image = "jellyfin/jellyfin:10.10.0";
|
||||
image = "jellyfin/jellyfin:10.10.7";
|
||||
user = "${toString UID}:${toString GID}";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
|
|
@ -117,7 +111,7 @@ in {
|
|||
"cache:/cache"
|
||||
|
||||
"/srv/audio:/media/audio"
|
||||
"/srv/video:/media/video"
|
||||
"${media.video.hostPath}:/media/video"
|
||||
"/srv/homevideo:/media/homevideo"
|
||||
"/srv/photo:/media/photo"
|
||||
];
|
||||
|
|
@ -144,7 +138,7 @@ in {
|
|||
feishinPort = "9180";
|
||||
in {
|
||||
hostname = "feishin";
|
||||
image = "ghcr.io/jeffvli/feishin:0.7.1";
|
||||
image = "ghcr.io/jeffvli/feishin:0.19.0";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
"${feishinPort}:9180/tcp" # Web player (HTTP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue