Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/make-disk-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ let
++ lib.optional (
lib.elem "zfs" cfg.extraRootModules || configSupportsZfs
) cfg.kernelPackages.${config.boot.zfs.package.kernelModuleAttribute}
++ cfg.extraRootModulePackages
);
}
// lib.optionalAttrs (diskoLib.vmToolsSupportsCustomQemu lib) {
Expand Down
12 changes: 12 additions & 0 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ in
example = [ "bcachefs" ];
};

extraRootModulePackages = lib.mkOption {
type = lib.types.listOf lib.types.package;
description = ''
extra kernel module packages to include in the disk image builder VM.
Useful when you need kernel modules that are not part of the main kernel package.
'';
default = [ ];
example = lib.literalExpression ''
[ config.boot.kernelPackages.bcachefs ]
'';
};

extraPostVM = lib.mkOption {
type = lib.types.lines;
description = ''
Expand Down