From 78fee25f206c4c4c1c76477a5ffe1309c25ae95d Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 28 Jun 2020 22:22:43 +0000 Subject: [PATCH] totoro: set up libvirt --- ops/nixos/totoro/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix index eb0d4e3685..826339353f 100644 --- a/ops/nixos/totoro/default.nix +++ b/ops/nixos/totoro/default.nix @@ -43,7 +43,14 @@ in { domain = "lukegb.xyz"; hostId = "676c08c4"; useDHCP = false; - interfaces.enp0s31f6.useDHCP = true; + interfaces.br-ext.useDHCP = true; + bridges.br-ext.interfaces = [ "enp0s31f6" ]; + }; + + # Virtualisation + virtualisation.libvirtd = { + enable = true; + allowedBridges = [ "virbr0" "br-ext" ]; }; system.stateVersion = "20.03";