Fix networking

This commit is contained in:
Nathan McCarty 2023-07-03 21:14:21 -04:00
parent 12c5f518ec
commit 0883930abe
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 12 additions and 1 deletions

View File

@ -32,7 +32,18 @@ in {
}; };
systemd.tmpfiles.rules = systemd.tmpfiles.rules =
[ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ]; [ "f /dev/shm/looking-glass 0660 nathan qemu-libvirtd -" ];
##
## Networking
##
# Setup bridge # Setup bridge
networking.bridges = { "qemu-br0" = { interfaces = [ "enp6s0" ]; }; }; 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" ];
} }