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