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

(cherry picked from commit fe3da83b7e)
This commit is contained in:
Joachim Fasting
2019-10-03 09:16:53 +02:00
parent 458445948e
commit b4c2e6b6c5

View File

@@ -824,5 +824,12 @@ in
'';
environment.systemPackages = [ pkgs.nixos-container ];
boot.kernelModules = [
"bridge"
"macvlan"
"tap"
"tun"
];
});
}