fix: properly apply oneOf

This commit is contained in:
dylan madisetti committed 2024-08-26 14:00:44 -04:00
1 parent ea3ce722ea
commit c9d3bc3755
4 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@
special = { special = {
members = [ "z" ]; members = [ "z" ];
}; };
cache = "cache"; cache = [ "cache" ];
}; };
}; };
+1
View File
@@ -100,3 +100,4 @@
}; };
}; };
} }
-1
View File
@@ -53,4 +53,3 @@
}; };
}; };
} }
+5 -2
View File
@@ -25,7 +25,9 @@ in
}; };
mode = lib.mkOption { mode = lib.mkOption {
default = ""; default = "";
type = (lib.types.enum modeOptions) // (lib.types.attrsOf (diskoLib.subType { type = (lib.types.oneOf [
(lib.types.enum modeOptions)
(lib.types.attrsOf (diskoLib.subType {
types = { types = {
topology = topology =
let let
@@ -90,7 +92,8 @@ in
}); });
}; };
extraArgs.parent = config; extraArgs.parent = config;
})); }))
]);
description = "Mode of the ZFS pool"; description = "Mode of the ZFS pool";
}; };
options = lib.mkOption { options = lib.mkOption {