We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e86082 + 2371077 commit f5c1bbfCopy full SHA for f5c1bbf
nixos-modules/microvm/options.nix
@@ -688,7 +688,24 @@ in
688
689
firecracker.extraConfig = mkOption {
690
type = types.submodule {
691
- freeformType = (pkgs.formats.json {}).type;
+ freeformType =
692
+ # vendored (pkgs.formats.json {}).type to avoid pkgs dependency and eval failure in search's
693
+ with types;
694
+ let
695
+ baseType = oneOf [
696
+ bool
697
+ int
698
+ float
699
+ str
700
+ path
701
+ (attrsOf valueType)
702
+ (listOf valueType)
703
+ ];
704
+ valueType = nullOr baseType // {
705
+ description = "JSON value";
706
+ };
707
+ in
708
+ valueType;
709
};
710
default = {};
711
description = "Extra config to merge into Firecracker JSON configuration";
0 commit comments