mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add steam container bridge network
This commit is contained in:
parent
5660351d84
commit
80bede4f0b
2 changed files with 17 additions and 22 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue