Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion nixos-modules/microvm/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,24 @@ in

firecracker.extraConfig = mkOption {
type = types.submodule {
freeformType = (pkgs.formats.json {}).type;
freeformType =
# vendored (pkgs.formats.json {}).type to avoid pkgs dependency and eval failure in search's
with types;
let
baseType = oneOf [
bool
int
float
str
path
(attrsOf valueType)
(listOf valueType)
];
valueType = nullOr baseType // {
description = "JSON value";
};
in
valueType;
};
default = {};
description = "Extra config to merge into Firecracker JSON configuration";
Expand Down