2024-12-21 11:15:14 -07:00
|
|
|
{ ... }:
|
2024-12-12 15:33:50 -07:00
|
|
|
{
|
|
|
|
containers.jellyfin = {
|
2025-01-03 21:38:24 -07:00
|
|
|
config = { pkgs, ... }: {
|
2024-12-12 15:33:50 -07:00
|
|
|
system.stateVersion = "25.05";
|
|
|
|
|
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.jellyfin;
|
|
|
|
};
|
2024-12-21 11:15:14 -07:00
|
|
|
|
|
|
|
# Firewall on the host system is enough + this firewall seems to break networking
|
|
|
|
networking.firewall.enable = false;
|
2024-12-12 15:33:50 -07:00
|
|
|
};
|
|
|
|
autoStart = true;
|
2025-01-03 21:38:24 -07:00
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/var/lib/jellyfin/libraries" = {
|
|
|
|
hostPath = "/mnt/hdd/jellyfin";
|
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
};
|
2024-12-12 15:33:50 -07:00
|
|
|
};
|
2024-12-21 11:15:14 -07:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall.trustedInterfaces = [ "ve-jellyfin" ];
|
|
|
|
nat.internalInterfaces = [ "ve-jellyfin" ];
|
|
|
|
networkmanager.unmanaged = [ "interface-name:ve-jellyfin" ];
|
|
|
|
};
|
2025-01-03 21:38:24 -07:00
|
|
|
}
|