about summary refs log tree commit diff
path: root/machines/devhell
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2020-03-24 17:48:15 +0000
committerdevhell <devhell@mailfresser.de>2020-03-24 17:48:15 +0000
commitdc4f68bf85eda01f79353c993304121ef6b12a48 (patch)
treee81b6f287fd4c30b5f55f23543b661e22fea2f1a /machines/devhell
parent8367d198733d9e66e542d28511ac3df44dbc1987 (diff)
machines/hildr: Add exceptions for certain ifaces
This has come about because qemu-kvm VMs lost the ability to gain a DHCP
issued IP address after a reboot. As it turns out networkd seems to have
played a part in messing with the virbr0 interface. Thanks to @aszlig we
figured out what was going on, so now we're going to make networkd
ignore all interfaces that are not physical.
Diffstat (limited to 'machines/devhell')
-rw-r--r--machines/devhell/hildr.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/machines/devhell/hildr.nix b/machines/devhell/hildr.nix
index d667b84b..d9e034e2 100644
--- a/machines/devhell/hildr.nix
+++ b/machines/devhell/hildr.nix
@@ -56,6 +56,10 @@
 
   # XXX Ensure that these are added in addition to the DHCP provided DNS servers
   systemd.network.networks."99-main".dns = [ "1.1.1.1" "1.0.0.1" ];
+  systemd.network.networks."99-libvirt" = {
+    matchConfig.Name = "virbr* vnet* docker*";
+    linkConfig.Unmanaged = true;
+  };
 
   networking = {
     hostName = "hildr";