Merge pull request #76487 from ryneeverett/lockkernelmodules-docker

This commit is contained in:
Jörg Thalheim 2020-07-18 10:35:34 +01:00 committed by GitHub
commit eb66a32a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,6 +149,7 @@ in
###### implementation
config = mkIf cfg.enable (mkMerge [{
boot.kernelModules = [ "bridge" "veth" ];
environment.systemPackages = [ cfg.package ]
++ optional cfg.enableNvidia pkgs.nvidia-docker;
users.groups.docker.gid = config.ids.gids.docker;