From 0883930abe599479a2a121b4b0f5d86aeac15df5 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 3 Jul 2023 21:14:21 -0400 Subject: [PATCH] Fix networking --- machines/levitation/passthrough.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/machines/levitation/passthrough.nix b/machines/levitation/passthrough.nix index 9ac4360..68a1617 100644 --- a/machines/levitation/passthrough.nix +++ b/machines/levitation/passthrough.nix @@ -32,7 +32,18 @@ in { }; systemd.tmpfiles.rules = [ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ]; + + ## + ## Networking + ## # Setup bridge networking.bridges = { "qemu-br0" = { interfaces = [ "enp6s0" ]; }; }; - networking.interfaces."qemu-br0".useDHCP = true; + networking.interfaces.qemu-br0 = { + ipv4.addresses = [{ + address = "10.0.0.247"; + prefixLength = 21; + }]; + }; + networking.defaultGateway = "10.0.4.1"; + networking.nameservers = [ "10.0.0.10" ]; }