diff --git a/hosts/thinkpad/modules/virtualisation/default.nix b/hosts/thinkpad/modules/virtualisation/default.nix index 4ea4724..e7b022e 100644 --- a/hosts/thinkpad/modules/virtualisation/default.nix +++ b/hosts/thinkpad/modules/virtualisation/default.nix @@ -27,20 +27,26 @@ virt-viewer podman-compose ]; - systemd.nspawn = { - n1 = { + systemd.nspawn = + let networkConfig = { Private = true; VirtualEthernet = true; Bridge = "br0"; }; - }; - n2 = { - networkConfig = { - Private = true; - VirtualEthernet = true; - Bridge = "br0"; + in + { + n1 = { + inherit networkConfig; + }; + n2 = { + inherit networkConfig; + }; + evpn1 = { + inherit networkConfig; + }; + evpn2 = { + inherit networkConfig; }; }; - }; }