···7 ###### interface
89 options = {
10+ boot.modprobeConfig.enable = mkEnableOption (lib.mdDoc "modprobe config. This is useful for systemds like containers which do not require a kernel.") // {
11+ default = true;
12+ };
1314 boot.blacklistedKernelModules = mkOption {
15 type = types.listOf types.str;
···4142 ###### implementation
4344+ config = mkIf config.boot.modprobeConfig.enable {
4546 environment.etc."modprobe.d/ubuntu.conf".source = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
47
+2
nixos/modules/virtualisation/container-config.nix
···89 # Disable some features that are not useful in a container.
10011 boot.kernel.enable = false;
01213 console.enable = mkDefault false;
14
···89 # Disable some features that are not useful in a container.
1011+ # containers don't have a kernel
12 boot.kernel.enable = false;
13+ boot.modprobeConfig.enable = false;
1415 console.enable = mkDefault false;
16