Add steam container bridge network

This commit is contained in:
muon 2024-08-23 10:54:16 +00:00
parent 5660351d84
commit 80bede4f0b
2 changed files with 17 additions and 22 deletions

View file

@ -22,27 +22,22 @@
externalInterface = "enp0s31f6";
};
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
# networking = {
# bridges.br0.interfaces = [ "enp0s31f6" ]; # Adjust interface accordingly
networking = {
bridges.br0.interfaces = [ "enp0s31f6" ]; # Adjust interface accordingly
# # Get bridge-ip with DHCP
# # useDHCP = false;
# # interfaces."br0".useDHCP = true;
# Get bridge-ip with DHCP
useDHCP = false;
interfaces."br0".useDHCP = true;
# # Set bridge-ip static
# # interfaces."br0".ipv4.addresses = [{
# # address = "192.168.1.171";
# # prefixLength = 24;
# # }];
# Set bridge-ip static
interfaces."br0".ipv4.addresses = [{
address = "192.168.1.171";
prefixLength = 24;
}];
# # interfaces."enp0s31f6".ipv4.addresses = [{
# # address = "192.168.1.107";
# # prefixLength = 24;
# # }];
# defaultGateway = "192.168.1.1";
# nameservers = [ "192.168.1.1" ];
# };
defaultGateway = "192.168.1.1";
nameservers = [ "192.168.1.1" ];
};
# networking.firewall.allowedTCPPorts = [ 4713 6000 ];
# hardware.pulseaudio = {

View file

@ -18,10 +18,10 @@ in {
containers.steam = {
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.11";
# hostBridge = "br0"; # Specify the bridge name
# localAddress = "192.168.1.105/24";
# hostAddress = "192.168.100.10";
# localAddress = "192.168.100.11";
hostBridge = "br0"; # Specify the bridge name
localAddress = "192.168.1.171/24";
bindMounts = {
"/home/steam/.steam/steam/steamapps/common/SMITE" = {