mirror of
https://github.com/nix-community/disko
synced 2024-09-20 05:51:54 +00:00
fix: properly apply oneOf
This commit is contained in:
parent
ea3ce722ea
commit
c9d3bc3755
4 changed files with 69 additions and 66 deletions
|
@ -90,7 +90,7 @@
|
|||
special = {
|
||||
members = [ "z" ];
|
||||
};
|
||||
cache = "cache";
|
||||
cache = [ "cache" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -100,3 +100,4 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -53,4 +53,3 @@
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,9 @@ in
|
|||
};
|
||||
mode = lib.mkOption {
|
||||
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 = {
|
||||
topology =
|
||||
let
|
||||
|
@ -90,7 +92,8 @@ in
|
|||
});
|
||||
};
|
||||
extraArgs.parent = config;
|
||||
}));
|
||||
}))
|
||||
]);
|
||||
description = "Mode of the ZFS pool";
|
||||
};
|
||||
options = lib.mkOption {
|
||||
|
|
Loading…
Reference in a new issue