types: add default types for topLevel children

This commit is contained in:
lassulus 2022-12-03 14:12:57 +01:00
parent daf5fe8e9b
commit bfa2318ca5

View file

@ -834,6 +834,7 @@ rec {
}; };
type = mkOption { type = mkOption {
type = types.enum [ "zpool" ]; type = types.enum [ "zpool" ];
default = "zpool";
internal = true; internal = true;
}; };
mode = mkOption { mode = mkOption {
@ -1212,6 +1213,8 @@ rec {
}; };
type = mkOption { type = mkOption {
type = types.enum [ "disk" ]; type = types.enum [ "disk" ];
default = "disk";
internal = true;
}; };
device = mkOption { device = mkOption {
type = optionTypes.absolute-pathname; # TODO check if subpath of /dev ? - No! eg: /.swapfile type = optionTypes.absolute-pathname; # TODO check if subpath of /dev ? - No! eg: /.swapfile