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
This commit is contained in:
Joachim Fasting 2019-10-03 09:16:53 +02:00
parent 2436c27541
commit fe3da83b7e
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294

View File

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