diff --git a/lib/runners/firecracker.nix b/lib/runners/firecracker.nix index a73f97fb..5d71664b 100644 --- a/lib/runners/firecracker.nix +++ b/lib/runners/firecracker.nix @@ -86,7 +86,7 @@ in { then throw "hotpluggedMem not implemented for Firecracker" else if credentialFiles != {} then throw "credentialFiles are not implemented for Firecracker" - else lib.escapeShellArgs [ + else lib.escapeShellArgs ([ "${pkgs.firecracker}/bin/firecracker" "--config-file" configFile "--api-sock" ( @@ -94,7 +94,7 @@ in { then socket else throw "Firecracker must be configured with an API socket (option microvm.socket)!" ) - ]; + ] ++ lib.optional (lib.versionAtLeast pkgs.firecracker.version "1.13.0") "--enable-pci"); preStart = '' ${preStart}