mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
types: add default types for topLevel children
This commit is contained in:
parent
daf5fe8e9b
commit
bfa2318ca5
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue