mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
firecracker-vm: expose components in passthru
This commit is contained in:
parent
dd406792a0
commit
fd2fa7c92c
1 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ callPackage
|
{ callPackage
|
||||||
, firecracker
|
, firecracker
|
||||||
, writeShellScriptBin
|
, writeShellApplication
|
||||||
, writeText
|
, writeText
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ let
|
||||||
});
|
});
|
||||||
|
|
||||||
in
|
in
|
||||||
writeShellScriptBin "firecracker-vm" ''
|
writeShellApplication {
|
||||||
${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}
|
name = "firecracker-vm";
|
||||||
''
|
text = "${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}";
|
||||||
|
derivationArgs.passthru = { inherit kernel rootfs; };
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue