diff --git a/lib/types/zpool.nix b/lib/types/zpool.nix index 5aed203..12b9cca 100644 --- a/lib/types/zpool.nix +++ b/lib/types/zpool.nix @@ -169,7 +169,7 @@ in formatVdev = type: vdev: formatOutput type vdev.mode vdev.members; formatVdevList = type: vdevs: lib.concatMapStrings (formatVdev type) - (builtins.sort (a: b: a.mode < b.mode) vdevs); + (builtins.sort (a: _: a.mode == "") vdevs); hasTopology = !(builtins.isString config.mode); mode = if hasTopology then "prescribed" else config.mode; topology = lib.optionalAttrs hasTopology config.mode.topology;