mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
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
1 changed files with 7 additions and 0 deletions
|
@ -824,5 +824,12 @@ in
|
|||
'';
|
||||
|
||||
environment.systemPackages = [ pkgs.nixos-container ];
|
||||
|
||||
boot.kernelModules = [
|
||||
"bridge"
|
||||
"macvlan"
|
||||
"tap"
|
||||
"tun"
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue