mediaserver: wip jellyfin
This commit is contained in:
parent
3d9f697a03
commit
8c0e42e982
3 changed files with 53 additions and 0 deletions
|
@ -24,6 +24,7 @@ in
|
||||||
../nixos/sabnzbd.nix
|
../nixos/sabnzbd.nix
|
||||||
../nixos/sonarr.nix
|
../nixos/sonarr.nix
|
||||||
../nixos/radarr.nix
|
../nixos/radarr.nix
|
||||||
|
../nixos/jellyfin.nix
|
||||||
|
|
||||||
../nixos/container.nix
|
../nixos/container.nix
|
||||||
../../secret/container/additional-media
|
../../secret/container/additional-media
|
||||||
|
|
24
system/nixos/jellyfin.nix
Normal file
24
system/nixos/jellyfin.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -65,6 +65,24 @@
|
||||||
what = "10.0.0.100:/mnt/dozer/media/Movies";
|
what = "10.0.0.100:/mnt/dozer/media/Movies";
|
||||||
where = "/mnt/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 = [
|
automounts = [
|
||||||
|
@ -92,6 +110,16 @@
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
where = "/mnt/media/Movies";
|
where = "/mnt/media/Movies";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
where = "/mnt/media/Deutsche Serien";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
where = "/mnt/media/Deutsche Filme";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue