Bridge appears on host machine, but when I root login to the container it doesn’t show up, and internet is unaccessible.
Im a nix newbie. Been at this for like a week, searching through wikis and forums, so its not like I haven’t read the wiki.
networking.nix (host machine)
{ config, pkgs, ... }:
{
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 80 8096 ];
};
useDHCP = false;
bridges.br0.interfaces = [ "eno1" ];
interfaces.br0.ipv4.addresses = [{ address = "192.168.1.10"; prefixLength = 16; }];
defaultGateway = "192.168.1.1";
nameservers = [ "192.168.1.1" ];
};
}
con-jellyfin.nix (container)
{ config, pkgs, lib, ... }:
{
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "br0";
};
};
containers.jellyfin = {
extraFlags = [ "-U" ];
autoStart = true;
privateNetwork = true;
hostBridge = "br0";
localAddress = "192.168.1.11/16";
config = { config, pkgs, lib, ... }: {
services.resolved.enable = true;
services.jellyfin = {
enable = true;
package = pkgs.jellyfin;
};
networking = {
hostName = "jellyfin";
interfaces."eth0".useDHCP = true;
useHostResolvConf = false;
};
system.stateVersion = "24.05";
};
};
system.stateVersion = "24.05";
}