From 427b0def7ff23b754b1ee173344a3ac745b6a47f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Sep 2021 12:35:04 +0800 Subject: [PATCH] nixops: enable libvirt bridge on hera --- nixops/hera-hardware-configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixops/hera-hardware-configuration.nix b/nixops/hera-hardware-configuration.nix index d43953c..ab6c465 100644 --- a/nixops/hera-hardware-configuration.nix +++ b/nixops/hera-hardware-configuration.nix @@ -27,4 +27,14 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + + virtualisation.libvirtd.allowedBridges = [ "virbr0" "br0" ]; + networking.bridges = { + br0 = { + interfaces = [ "eno1" ]; + }; + }; + networking.networkmanager.enable = false; + networking.useDHCP = false; + networking.interfaces.br0.useDHCP = true; }