1
0
Fork 0

mediaserver: wip jellyfin

This commit is contained in:
Daniel Kempkens 2023-04-19 21:30:42 +02:00
parent 3d9f697a03
commit 8c0e42e982
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 53 additions and 0 deletions

View file

@ -24,6 +24,7 @@ in
../nixos/sabnzbd.nix
../nixos/sonarr.nix
../nixos/radarr.nix
../nixos/jellyfin.nix
../nixos/container.nix
../../secret/container/additional-media

24
system/nixos/jellyfin.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, lib, ... }:
{
services.jellyfin = {
enable = true;
user = "media_user";
group = "media_group";
openFirewall = false;
};
services.nginx.virtualHosts."jellyfin.internal.kempkens.network" = {
quic = true;
http3 = true;
onlySSL = true;
useACMEHost = "internal.kempkens.network";
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://192.168.42.2:7878";
proxyWebsockets = true;
};
};
}

View file

@ -65,6 +65,24 @@
what = "10.0.0.100:/mnt/dozer/media/Movies";
where = "/mnt/media/Movies";
}
{
type = "nfs";
mountConfig = {
Options = "noatime,nconnect=4";
};
what = "10.0.0.100:/mnt/dozer/MediaVault/Deutsche Serien";
where = "/mnt/media/Deutsche Serien";
}
{
type = "nfs";
mountConfig = {
Options = "noatime,nconnect=4";
};
what = "10.0.0.100:/mnt/dozer/media/Deutsche Filme";
where = "/mnt/media/Deutsche Filme";
}
];
automounts = [
@ -92,6 +110,16 @@
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Movies";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Deutsche Serien";
}
{
wantedBy = [ "multi-user.target" ];
where = "/mnt/media/Deutsche Filme";
}
];
};
}