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:
parent
2436c27541
commit
fe3da83b7e
|
@ -824,5 +824,12 @@ in
|
|||
'';
|
||||
|
||||
environment.systemPackages = [ pkgs.nixos-container ];
|
||||
|
||||
boot.kernelModules = [
|
||||
"bridge"
|
||||
"macvlan"
|
||||
"tap"
|
||||
"tun"
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue