about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorc0bw3b <c0bw3b@users.noreply.github.com>2019-11-11 11:42:16 +0100
committerc0bw3b <c0bw3b@users.noreply.github.com>2019-11-11 11:42:16 +0100
commit8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a (patch)
tree81e37b36582a420fb5c885cdfdefb42f6ed9de49 /nixos
parente994fdcac0aec2f77f50905732f4ea9a4445b7c2 (diff)
downloadnixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar.gz
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar.bz2
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar.lz
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar.xz
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.tar.zst
nixlib-8d3ef32135e49b1a8dbcef8f1e0dc82c717d2c3a.zip
nixos/libvirtd: install /etc/ethertypes
Fix #58200
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/libvirtd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix
index 16b79d869193..edde7dde39ed 100644
--- a/nixos/modules/virtualisation/libvirtd.nix
+++ b/nixos/modules/virtualisation/libvirtd.nix
@@ -146,7 +146,8 @@ in {
       # this file is expected in /etc/qemu and not sysconfdir (/var/lib)
       etc."qemu/bridge.conf".text = lib.concatMapStringsSep "\n" (e:
         "allow ${e}") cfg.allowedBridges;
-      systemPackages = with pkgs; [ libvirt libressl.nc cfg.qemuPackage ];
+      systemPackages = with pkgs; [ libvirt libressl.nc iptables cfg.qemuPackage ];
+      etc.ethertypes.source = "${iptables}/etc/ethertypes";
     };
 
     boot.kernelModules = [ "tun" ];