diff --git a/secrets/default.nix b/secrets/default.nix index 754483d..4a4aa68 100644 --- a/secrets/default.nix +++ b/secrets/default.nix @@ -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 = {