Skip to content

Commit f5c1bbf

Browse files
Merge pull request #445 from microvm-nix/drop-pkgs-for-options.json
2 parents 3e86082 + 2371077 commit f5c1bbf

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

nixos-modules/microvm/options.nix

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,24 @@ in
688688

689689
firecracker.extraConfig = mkOption {
690690
type = types.submodule {
691-
freeformType = (pkgs.formats.json {}).type;
691+
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;
692709
};
693710
default = {};
694711
description = "Extra config to merge into Firecracker JSON configuration";

0 commit comments

Comments
 (0)