security.lockKernelModules
NixOS option
Disable kernel module loading once the system is fully initialised. Module loading is disabled until the next reboot. Problems caused by delayed module loading can be fixed by adding the module(s) in question to boot.kernelModules.
type: booleanDefault
declared in: nixos/modules/security/lock-kernel-modules.nixView source on NixOS/nixpkgs →false