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:
parent
4b6f6423db
commit
7f8b661309
|
@ -14,7 +14,15 @@ let
|
||||||
in
|
in
|
||||||
throwOnCanary {
|
throwOnCanary {
|
||||||
options.my.secrets = mkOption {
|
options.my.secrets = mkOption {
|
||||||
type = types.attrs;
|
type =
|
||||||
|
let
|
||||||
|
valueType = with types; oneOf [
|
||||||
|
int
|
||||||
|
str
|
||||||
|
(attrsOf valueType)
|
||||||
|
];
|
||||||
|
in
|
||||||
|
valueType;
|
||||||
};
|
};
|
||||||
|
|
||||||
config.my.secrets = {
|
config.my.secrets = {
|
||||||
|
|
Loading…
Reference in a new issue