mirror of
https://github.com/nix-community/disko.git
synced 2026-12-04 06:53:28 +01:00
fix: properly apply oneOf
This commit is contained in:
4 files changed
+7
-4
No files matched your search
@@ -90,7 +90,7 @@
|
|||||||
special = {
|
special = {
|
||||||
members = [ "z" ];
|
members = [ "z" ];
|
||||||
};
|
};
|
||||||
cache = "cache";
|
cache = [ "cache" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -100,3 +100,4 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,4 +53,3 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
+5
-2
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user