Add steam container bridge network

This commit is contained in:
muon 2024-07-28 18:22:59 +00:00
parent a4b72da4b4
commit 53508e59c5
4 changed files with 43 additions and 11 deletions

View file

@ -20,6 +20,8 @@ in {
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.11";
# hostBridge = "br0"; # Specify the bridge name
# localAddress = "192.168.1.105/24";
bindMounts = {
"/home/steam/.steam/steam/steamapps/common/SMITE" = {
@ -48,7 +50,6 @@ in {
"steam-run"
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
@ -64,6 +65,8 @@ in {
glxinfo
wget
bottles
ungoogled-chromium
zellij
openbox
steam-xinit
@ -109,6 +112,14 @@ in {
initialPassword = "changeme";
};
networking = {
# Use systemd-resolved inside the container
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
useHostResolvConf = lib.mkForce false;
};
services.resolved.enable = true;
system.stateVersion = "23.11";
};
};