mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +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
|
||||
, firecracker
|
||||
, writeShellScriptBin
|
||||
, writeShellApplication
|
||||
, writeText
|
||||
}:
|
||||
|
||||
|
@ -27,6 +27,8 @@ let
|
|||
});
|
||||
|
||||
in
|
||||
writeShellScriptBin "firecracker-vm" ''
|
||||
${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}
|
||||
''
|
||||
writeShellApplication {
|
||||
name = "firecracker-vm";
|
||||
text = "${firecracker}/bin/firecracker --no-api --config-file ${vmconfig}";
|
||||
derivationArgs.passthru = { inherit kernel rootfs; };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue