2024-12-21 11:15:14 -07:00
|
|
|
{ ... }:
|
2024-12-12 15:33:50 -07:00
|
|
|
{
|
|
|
|
containers.jellyfin = {
|
|
|
|
config = { pkgs, ...}: {
|
|
|
|
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;
|
|
|
|
privateNetwork = true;
|
2024-12-21 11:15:14 -07:00
|
|
|
hostAddress = "172.30.1.2"; # TODO define in config option
|
2024-12-12 15:33:50 -07:00
|
|
|
localAddress = "172.30.0.2";
|
|
|
|
};
|
2024-12-21 11:15:14 -07:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall.trustedInterfaces = [ "ve-jellyfin" ];
|
|
|
|
nat.internalInterfaces = [ "ve-jellyfin" ];
|
|
|
|
networkmanager.unmanaged = [ "interface-name:ve-jellyfin" ];
|
|
|
|
};
|
2024-12-12 15:33:50 -07:00
|
|
|
}
|