Improve types in the VM test node config module system.

This commit is contained in:
r-vdp 2023-05-09 10:39:23 +02:00
parent 8ec989863d
commit 2ee52a84b3
No known key found for this signature in database

View file

@ -17,22 +17,18 @@ let
}; };
modules = lib.mkOption { modules = lib.mkOption {
# TODO: can we give a better type here? type = types.listOf types.deferredModule;
# We want a list of system-manager modules
type = types.listOf types.raw;
}; };
systemConfig = lib.mkOption { systemConfig = lib.mkOption {
# TODO figure out correct type type = types.package;
type = types.raw;
internal = true; internal = true;
readOnly = true; readOnly = true;
}; };
virtualisation = { virtualisation = {
rootImage = lib.mkOption { rootImage = lib.mkOption {
# TODO: figure out the correct type. type = types.package;
type = types.raw;
}; };
memorySize = lib.mkOption { memorySize = lib.mkOption {
@ -92,7 +88,6 @@ in
{ {
options = { options = {
# TODO: figure out correct type
hostPkgs = lib.mkOption { hostPkgs = lib.mkOption {
type = pkgsType; type = pkgsType;
}; };