Improve types in the VM test node config module system.
This commit is contained in:
parent
8ec989863d
commit
2ee52a84b3
1 changed files with 3 additions and 8 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue