secrets: use more specific type

I will amend it if I need more types, but for now this is fine.
This commit is contained in:
Bruno BELANYI 2021-06-27 19:48:26 +02:00
parent 5abe4e929e
commit d6e9f9786d

View file

@ -14,7 +14,15 @@ let
in
throwOnCanary {
options.my.secrets = mkOption {
type = types.attrs;
type =
let
valueType = with types; oneOf [
int
str
(attrsOf valueType)
];
in
valueType;
};
config.my.secrets = {