From fe3da83b7e26b6f7cdde7a457a794c215d16e969 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Thu, 3 Oct 2019 09:16:53 +0200 Subject: [PATCH] nixos/containers: explicitly load kernel modules for networking List all modules that *may* be required depending on individual container configurations; don't expect that further modules can be loaded after boot. Fixes https://github.com/NixOS/nixpkgs/issues/38676 --- nixos/modules/virtualisation/containers.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index 9c9f8fc0c215..691ee2c136ec 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -824,5 +824,12 @@ in ''; environment.systemPackages = [ pkgs.nixos-container ]; + + boot.kernelModules = [ + "bridge" + "macvlan" + "tap" + "tun" + ]; }); }