From bfa2318ca5dc6b2471c5025b9adbd2fd35c3adea Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 3 Dec 2022 14:12:57 +0100 Subject: types: add default types for topLevel children --- types.nix | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3