mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00: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…
Reference in a new issue