summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-03 14:12:57 +0100
committerlassulus <lassulus@lassul.us>2022-12-03 14:13:33 +0100
commitbfa2318ca5dc6b2471c5025b9adbd2fd35c3adea (patch)
tree3947bcf0c3b42a91c4338ef14a68df9fbbeef902
parentdaf5fe8e9bfbd17c569a7896bf48649e9eb94f80 (diff)
types: add default types for topLevel children
-rw-r--r--types.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/types.nix b/types.nix
index bf9dc30..377f546 100644
--- a/types.nix
+++ b/types.nix
@@ -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