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