From 1b209dd4d654e28d0d956ed0d85a2cfa1f2abf5a Mon Sep 17 00:00:00 2001 From: Morgan Helton Date: Sat, 9 Mar 2024 08:33:52 -0600 Subject: [PATCH] add chopper second NIC as bridge interface --- hosts/chopper/virtualisation.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosts/chopper/virtualisation.nix b/hosts/chopper/virtualisation.nix index 7f28caf..237ccf0 100644 --- a/hosts/chopper/virtualisation.nix +++ b/hosts/chopper/virtualisation.nix @@ -1,8 +1,22 @@ { ... }: { virtualisation.libvirtd = { enable = true; + allowedBridges = [ + "virbr0" + ]; }; users.users.mhelton.extraGroups = [ "libvirtd" ]; + networking = { + interfaces.enp5s0.useDHCP = false; + bridges = { + virbr0 = { + interfaces = [ + "enp5s0" + ]; + }; + }; + }; + }