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.
1 parent 9b8e2cb commit 4737709Copy full SHA for 4737709
nixos-modules/microvm/options.nix
@@ -614,7 +614,24 @@ in
614
615
firecracker.extraConfig = mkOption {
616
type = types.submodule {
617
- freeformType = (pkgs.formats.json {}).type;
+ freeformType =
618
+ # vendored (pkgs.formats.json {}).type to avoid pkgs dependency and eval failure in search's
619
+ with types;
620
+ let
621
+ baseType = oneOf [
622
+ bool
623
+ int
624
+ float
625
+ str
626
+ path
627
+ (attrsOf valueType)
628
+ (listOf valueType)
629
+ ];
630
+ valueType = nullOr baseType // {
631
+ description = "JSON value";
632
+ };
633
+ in
634
+ valueType;
635
};
636
default = {};
637
description = "Extra config to merge into Firecracker JSON configuration";
0 commit comments